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 Input<br />

DISCRIMINANT 483<br />

records in the matrix materials represent within-cell data, and separate covariance<br />

matrices are written to the file. When the matrix file is used as input for a subsequent<br />

DISCRIMINANT procedure, at least one of these specifications must be used on that<br />

DISCRIMINANT command.<br />

• DISCRIMINANT can read correlation matrices written by a previous DISCRIMINANT<br />

command or by other procedures. Matrix materials read by DISCRIMINANT must contain<br />

records with ROWTYPE_ values MEAN, N or COUNT (or both), STDDEV, and CORR.<br />

• If the data do not include records with ROWTYPE_ value COUNT (unweighted number of<br />

cases), DISCRIMINANT uses information from records with ROWTYPE_ value N (weighted<br />

number of cases). Conversely, if the data do not have N values, DISCRIMINANT uses the<br />

COUNT values. These records can appear in any order in the matrix input file with the<br />

following exceptions: the order of split-file groups cannot be violated and all CORR<br />

vectors must appear consecutively within each split-file group.<br />

• If you want to use a covariance-type matrix as input to DISCRIMINANT, you must first use<br />

the MCONVERT command to change the covariance matrix to a correlation matrix.<br />

• DISCRIMINANT can use a matrix from a previous data set to classify data in the working<br />

data file. The program checks to make sure that the grouping variable (specified on<br />

GROUPS) and the predictor variables (specified on VARIABLES) are the same in the<br />

working data file as in the matrix file. If they are not, the program displays an error<br />

message and the classification will not be executed.<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<br />

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

Format of the Matrix Data File<br />

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

VARNAME_. Variable ROWTYPE_ is a short string variable having values N, COUNT,<br />

MEAN, STDDEV, and CORR (for Pearson correlation coefficient). The variable<br />

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

form the correlation matrix.<br />

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

correlation matrix.<br />

• Between ROWTYPE_ and VARNAME_ is the grouping variable, which is specified on the<br />

GROUPS subcommand of DISCRIMINANT.<br />

• The remaining variables are the variables used to form the correlation matrix.

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

Saved successfully!

Ooh no, something went wrong!