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.

MATRIX Subcommand<br />

ALSCAL 113<br />

MATRIX reads SPSS matrix data files. It can read a matrix written by either PROXIMITIES or<br />

CLUSTER.<br />

• Generally, data read by ALSCAL are already in matrix form. If the matrix materials are in the<br />

working data file, you do not need to use MATRIX to read them. Simply use the VARIABLES<br />

subcommand to indicate the variables (or columns) to be used. However, if the matrix materials<br />

are not in the working data file, MATRIX must be used to specify the matrix data file that<br />

contains the matrix.<br />

• The proximity matrices ALSCAL reads have ROWTYPE_ values of PROX. No additional<br />

statistics should be included with these matrix materials.<br />

• ALSCAL ignores unrecognized ROWTYPE_ values in the matrix file. In addition, it ignores<br />

variables present in the matrix file that are not specified on the VARIABLES subcommand<br />

in ALSCAL. The order of rows and columns in the matrix is unimportant.<br />

• Since ALSCAL does not support case labeling, it ignores values for the ID variable (if<br />

present) in a CLUSTER or PROXIMITIES matrix.<br />

• If split-file processing was in effect when the matrix was written, the same split file must<br />

be in effect when ALSCAL reads that matrix.<br />

• The specification on MATRIX is the keyword IN and the matrix file in parentheses.<br />

• MATRIX=IN cannot be used unless a working data file has already been defined. To read<br />

an existing matrix data file at the beginning of a session, first use GET to retrieve the matrix<br />

file and then specify IN(*) on MATRIX.<br />

IN (filename) Read a matrix data file. If the matrix data file is the working data file, specify<br />

an asterisk in parentheses (*). If the matrix data file is another file, specify<br />

the filename in parentheses. A matrix file read from an external file does not<br />

replace the working data file.<br />

Example<br />

PROXIMITIES V1 TO V8 /ID=NAMEVAR /MATRIX=OUT(*).<br />

ALSCAL VAR=CASE1 TO CASE10 /MATRIX=IN(*).<br />

• PROXIMITIES uses V1 through V8 in the working data file to generate a matrix file of Euclidean<br />

distances between each pair of cases based on the eight variables. The number of<br />

rows and columns in the resulting matrix equals the number of cases. MATRIX=OUT then<br />

replaces the working data file with this new matrix data file.<br />

• MATRIX=IN on ALSCAL reads the matrix data file, which is the new working data file. In<br />

this instance, MATRIX is optional because the matrix materials are in the working data file.<br />

• If there were 10 cases in the original working data file, ALSCAL performs a multidimensional<br />

scaling analysis in two dimensions on CASE1 through CASE10.<br />

Example<br />

GET FILE PROXMTX.<br />

ALSCAL VAR=CASE1 TO CASE10 /MATRIX=IN(*).<br />

• GET retrieves the matrix data file PROXMTX.

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

Saved successfully!

Ooh no, something went wrong!