27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

954 MATRIX—END MATRIX<br />

• The matrix expression specification can be any matrix language expression that evaluates<br />

to the value(s) to be written to the matrix-format file.<br />

• You can specify a matrix name, a matrix raised to a power, or a matrix function (with its<br />

arguments in parentheses) by itself, but you must enclose other matrix expressions in<br />

parentheses. For example, MSAVE A, SAVE INV(A), or MSAVE B**DET(T(C)*D) is<br />

legal, but MSAVE N * WT is not. You must specify MSAVE (N * WT).<br />

• Constant expressions are allowed.<br />

TYPE Specification<br />

TYPE specifies the rowtype to write to the matrix-format data file. Only a single rowtype can<br />

be written by any one MSAVE statement.Valid keywords on the TYPE specification are:<br />

COV A matrix of covariances.<br />

CORR A matrix of correlation coefficients.<br />

MEAN A vector of means.<br />

STDDEV A vector of standard deviations.<br />

N A vector of numbers of cases.<br />

COUNT A vector of counts.<br />

OUTFILE Specification<br />

OUTFILE designates the SPSS matrix-format data file to which the matrices are to be written.<br />

It can be an asterisk, an actual filename in apostrophes or quotation marks, or a file handle<br />

defined on a FILE HANDLE command that precedes the matrix program. The filename or handle<br />

must be a valid file specification.<br />

• The OUTFILE specification is required on the first MSAVE statement in a matrix program.<br />

• To save a matrix expression as the working data file (replacing any working data file created<br />

before the matrix program), specify an asterisk (*).<br />

• Since only one matrix-format data file can be written in a single matrix program, any<br />

OUTFILE specification on the second and later MSAVE statements in one matrix program<br />

must be the same as that on the first MSAVE statement.<br />

VARIABLES Specification<br />

You can provide variable names for the matrix-format data file with the VARIABLES specification.<br />

The variable list is a list of valid SPSS variable names separated by commas. You can<br />

use the TO convention.<br />

• The VARIABLES specification names only the data variables in the matrix. Split-file variables<br />

and grouping or factor variables are named on the SNAMES and FNAMES specifications.<br />

• The names in the VARIABLES specification become the values of the special variable<br />

VARNAME_ in the matrix-format data file for rowtypes of CORR and COV.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!