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.

978 MCONVERT<br />

• If there are multiple CORR or COV matrices (for example, one for each grouping (factor)<br />

or one for each split variable), each will be converted to a separate matrix, preserving the<br />

values of any factor or split variables.<br />

• All cases with ROWTYPE_ values other than CORR or COV, such as MEAN, N, and<br />

STDDEV, are always copied into the new matrix data file.<br />

• MCONVERT cannot read raw matrix values. If your data are raw values, use the MATRIX<br />

DATA command.<br />

• Split variables (if any) must occur first in the file that MCONVERT reads, followed by the<br />

variable ROWTYPE_, the grouping variables (if any), and the variable VARNAME_. All variables<br />

following VARNAME_ are the variables for which a matrix will be read and created.<br />

Limitations<br />

Example<br />

• The total number of split variables plus grouping variables cannot exceed eight.<br />

MATRIX DATA VARIABLES=ROWTYPE_ SAVINGS POP15 POP75 INCOME GROWTH<br />

/FORMAT=FULL.<br />

BEGIN DATA<br />

COV 20.0740459 -18.678638 1.8304990 978.181242 3.9190106<br />

COV -18.678638 83.7541100 -10.731666 -6856.9888 -1.2561071<br />

COV 1.8304990 -10.731666 1.6660908 1006.52742 .0937992<br />

COV 978.181242 -6856.9888 1006.52742 981785.907 -368.18652<br />

COV 3.9190106 -1.2561071 .0937992 -368.18652 8.2361574<br />

END DATA.<br />

MCONVERT.<br />

• MATRIX DATA defines the variables in the file and creates a working data file of matrix<br />

materials. The values for the variable ROWTYPE_ are COV, indicating that the matrix<br />

contains covariance coefficients. The FORMAT subcommand indicates that data are in full<br />

square format.<br />

• MCONVERT converts the covariance matrix to a correlation matrix plus a vector of standard<br />

deviations. By default, the converted matrix is written to the working data file.<br />

MATRIX Subcommand<br />

The MATRIX subcommand specifies the file for the matrix materials. By default, MATRIX<br />

reads the original matrix from the working data file and replaces the working data file with<br />

the converted matrix.<br />

• MATRIX has two keywords, IN and OUT. The specification on both IN and OUT is the name<br />

of an external file in parentheses or an asterisk (*) to refer to the working data file (the<br />

default).<br />

• The actual keyword MATRIX is optional.<br />

• IN and OUT cannot specify the same external file.

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

Saved successfully!

Ooh no, something went wrong!