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.

MATRIX DATA 965<br />

When either of the following is true, the only variables that must be specified on VARIABLES<br />

are the continuous variables:<br />

1. The data contain only correlation coefficients. There can be no additional information,<br />

such as the mean and standard deviation, and no factor information or split-file variables.<br />

MATRIX DATA assigns the record type CORR to all records.<br />

2. CONTENTS is used to define all record types. The data can then contain information such<br />

as the mean and standard deviation, but no factor, split-file, or ROWTYPE_ variables.<br />

MATRIX DATA assigns the record types defined on the CONTENTS subcommand.<br />

Variable VARNAME_<br />

VARNAME_ cannot be specified on the VARIABLES subcommand or anywhere on MATRIX<br />

DATA, and its values cannot be included in the data. The MATRIX DATA command generates<br />

the variable VARNAME_ automatically.<br />

Variable ROWTYPE_<br />

• ROWTYPE_ is a string variable with A8 format. Its values define the data types. All SPSSformat<br />

matrix data files contain a ROWTYPE_ variable.<br />

• If ROWTYPE_ is specified on VARIABLES and its values are entered in the data, MATRIX<br />

DATA is primarily used to define the names and order of the variables in the raw data file.<br />

• ROWTYPE_ must precede the continuous variables.<br />

• Valid values for ROWTYPE_ are CORR, COV, MAT, MSE, DFE, MEAN, STDDEV (or<br />

SD), N_VECTOR (or N), N_SCALAR, N_MATRIX, COUNT, or PROX. For definitions of<br />

these values, see the CONTENTS subcommand on p. 972. Three-character abbreviations<br />

for these values are permitted. These values can also be enclosed in quotes or apostrophes.<br />

• If ROWTYPE_ is not specified on VARIABLES, CONTENTS must be used to define the order<br />

in which the records occur within the file. MATRIX DATA follows these specifications<br />

strictly and generates a ROWTYPE_ variable according to the CONTENTS specifications.<br />

A data-entry error, especially skipping a record, can cause the procedure to assign the<br />

wrong values to the wrong records.<br />

Example<br />

* ROWTYPE_ is specified on VARIABLES.<br />

MATRIX DATA<br />

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

BEGIN DATA<br />

MEAN 9.6710 35.0896 2.2930 1106.7784 3.7576<br />

STDDEV 4.4804 9.1517 1.2907 990.8511 2.8699<br />

N 50 50 50 50 50<br />

CORR 1<br />

CORR -.4555 1<br />

CORR .3165 -.9085 1<br />

CORR .2203 -.7562 .7870 1<br />

CORR .3048 -.0478 .0253 -.1295 1<br />

END DATA.

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

Saved successfully!

Ooh no, something went wrong!