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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example<br />

MATRIX DATA FILE=RAWMTX /VARIABLES=varlist.<br />

• FILE indicates that the data are in the file RAWMTX.<br />

FORMAT Subcommand<br />

MATRIX DATA 967<br />

FORMAT indicates how the matrix data are formatted. It applies only to matrix values in the<br />

data, not to vector values, such as the mean and standard deviation.<br />

• FORMAT can specify up to three keywords: one to specify the data-entry format, one to<br />

specify matrix shape, and one to specify whether the data include diagonal values.<br />

• The minimum specification is a single keyword.<br />

• Default settings remain in effect unless explicitly overridden.<br />

Data-Entry Format<br />

FORMAT has two keywords that specify the data-entry format:<br />

LIST Each scalar, vector, and matrix row must begin on a new record. A vector or row<br />

of the matrix may be continued on multiple records. This is the default.<br />

FREE Matrix rows do not need to begin on a new record. Any item can begin in the middle<br />

of a record.<br />

Matrix Shape<br />

FORMAT has three keywords that specify the matrix shape. With either triangular shape, no<br />

values—not even missing indicators—are entered for the implied values in the matrix.<br />

LOWER Read data values from the lower triangle. This is the default.<br />

UPPER Read data values from the upper triangle.<br />

FULL Read the full square matrix of data values. FULL cannot be specified with NODIAGONAL.<br />

Diagonal Values<br />

FORMAT has two keywords that refer to the diagonal values:<br />

DIAGONAL Data include the diagonal values. This is the default.<br />

NODIAGONAL Data do not include diagonal values. The diagonal value is set to the systemmissing<br />

value for all matrices except the correlation matrices. For correlation<br />

matrices, the diagonal value is set to 1. NODIAGONAL cannot be specified<br />

with FULL.<br />

Table 3 shows how data might be entered for each combination of FORMAT settings that govern<br />

matrix shape and diagonal values. With UPPER NODIAGONAL and LOWER NODIAGONAL, you

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

Saved successfully!

Ooh no, something went wrong!