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.

970 MATRIX DATA<br />

• The split variable SPL is not specified on VARIABLES, and values for SPL are not included<br />

in the data.<br />

• Two sets of matrix materials are included in the data. MATRIX DATA therefore assigns<br />

values 1 and 2 to variable SPL and generates two matrices in the matrix data file.<br />

FACTORS Subcommand<br />

FACTORS specifies the variables whose values define the cells represented by the withincells<br />

data. FACTORS must follow the VARIABLES subcommand.<br />

• FACTORS specifies a subset of the variables named on the VARIABLES subcommand.<br />

The keyword TO can be used to imply variables in the order in which they are named<br />

on VARIABLES.<br />

• If ROWTYPE_ is explicit on VARIABLES and its values are included in the data, records<br />

that represent pooled information have the system-missing value (indicated by a period)<br />

for the factors, since the values of ROWTYPE_ are ambiguous.<br />

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

values for the factors only for records that represent within-cells information. Enter nothing<br />

for the factors for records that represent pooled information. CELLS must be specified<br />

to indicate the number of within-cells records, and CONTENTS must be specified to indicate<br />

which record types have within-cells data.<br />

Example<br />

* Rowtype is explicit.<br />

MATRIX DATA VARIABLES=ROWTYPE_ F1 F2 VAR1 TO VAR3<br />

/FACTORS=F1 F2.<br />

BEGIN DATA<br />

MEAN 1 1 1 2 3<br />

SD 1 1 5 4 3<br />

N 1 1 9 9 9<br />

MEAN 1 2 4 5 6<br />

SD 1 2 6 5 4<br />

N 1 2 9 9 9<br />

MEAN 2 1 7 8 9<br />

SD 2 1 7 6 5<br />

N 2 1 9 9 9<br />

MEAN 2 2 9 8 7<br />

SD 2 2 8 7 6<br />

N 2 2 9 9 9<br />

CORR . . .1<br />

CORR . . .6 1<br />

CORR . . .7 .8 1<br />

END DATA.<br />

• ROWTYPE_ is specified on VARIABLES.<br />

• Factor variables must be specified on both VARIABLES and FACTORS.<br />

• Periods in the data represent missing values for the CORR factor values.

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

Saved successfully!

Ooh no, something went wrong!