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.

1080 NONPAR CORR<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_.<br />

• Variable ROWTYPE_ is a short string variable with values N and RHO for Spearman’s<br />

correlation coefficient. If you specify Kendall’s coefficient, the values are N and TAUB.<br />

• VARNAME_ is a short string variable whose values are the names of the variables used to<br />

form the correlation matrix. When ROWTYPE_ is RHO (or TAUB), VARNAME_ gives the<br />

variable associated with that row of the 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 data file are the split<br />

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

matrix.<br />

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

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

file.<br />

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

effect when that matrix is read by a procedure.<br />

Missing Values<br />

Example<br />

• With PAIRWISE treatment of missing values (the default), the matrix of N’s used to compute<br />

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

• With LISTWISE or INCLUDE treatments, a single N used to calculate all coefficients is<br />

included with the matrix materials.<br />

GET FILE GSS80 /KEEP PRESTIGE SPPRES PAPRES16 DEGREE PADEG MADEG.<br />

NONPAR CORR VARIABLES=PRESTIGE TO MADEG<br />

/MATRIX OUT(NPMAT).<br />

• NONPAR CORR reads data from file GSS80 and writes one set of correlation matrix materials<br />

to the file NPMAT.<br />

• The working data file is still GSS80. Subsequent commands are executed on file GSS80.

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

Saved successfully!

Ooh no, something went wrong!