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.

276 CORRELATIONS<br />

Format of the Matrix Data File<br />

Split Files<br />

• The matrix data file has two special variables created by the program: ROWTYPE_ and<br />

VARNAME_. The variable ROWTYPE_ is a short string variable with values MEAN, STDDEV,<br />

N, and CORR (for Pearson correlation coefficient). The next variable, VARNAME_, is a short<br />

string variable whose values are the names of the variables used to form the correlation matrix.<br />

When ROWTYPE_ is CORR, VARNAME_ gives the variable associated with that row of the<br />

correlation matrix.<br />

• The remaining variables in the file are the variables used to form the correlation matrix.<br />

• When split-file processing is in effect, the first variables in the matrix file will be split<br />

variables, followed by ROWTYPE_, VARNAME_, and the variables used to form the<br />

correlation matrix.<br />

• A full set of matrix materials is written for each subgroup defined by the split variables.<br />

• A split variable cannot have the same name as any other variable written to the matrix<br />

data file.<br />

• If split-file processing is in effect when a matrix is written, the same split-file specifications<br />

must be in effect when that matrix is read by another procedure.<br />

Missing Values<br />

Example<br />

Example<br />

• With pairwise treatment of missing values (the default), a matrix of the number of cases<br />

used to compute each coefficient is included with the matrix materials.<br />

• With listwise treatment, a single number indicating the number of cases used to calculate<br />

all coefficients is included.<br />

GET FILE=CITY /KEEP FOOD RENT PUBTRANS TEACHER COOK ENGINEER.<br />

CORRELATIONS VARIABLES=FOOD TO ENGINEER<br />

/MATRIX OUT(CORRMAT).<br />

• CORRELATIONS reads data from the file CITY and writes one set of matrix materials to the<br />

file CORRMAT. The working file is still CITY. Subsequent commands are executed on<br />

CITY.<br />

GET FILE=CITY /KEEP FOOD RENT PUBTRANS TEACHER COOK ENGINEER.<br />

CORRELATIONS VARIABLES=FOOD TO ENGINEER<br />

/MATRIX OUT(*).<br />

LIST.<br />

DISPLAY DICTIONARY.

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

Saved successfully!

Ooh no, something went wrong!