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

• SPLIT can specify a subset of up to eight of the variables named on VARIABLES. All split<br />

variables must be numeric. The keyword TO can be used to imply variables in the order<br />

in which they are named on VARIABLES.<br />

• A separate matrix must be included in the data for each value of each split variable.<br />

MATRIX DATA generates a complete set of matrix materials for each.<br />

• If the data contain neither ROWTYPE_ nor split-file variables, a single split-file variable<br />

can be specified on SPLIT. This variable is not specified on the VARIABLES subcommand.<br />

MATRIX DATA generates a complete set of matrix materials for each set of matrix<br />

materials in the data and assigns values 1, 2, 3, etc., to the split variable until the end of<br />

the data is encountered.<br />

Example<br />

MATRIX DATA VARIABLES=S1 ROWTYPE_ V1 TO V3 /SPLIT=S1.<br />

BEGIN DATA<br />

0 MEAN 5 4 3<br />

0 SD 1 2 3<br />

0 N 9 9 9<br />

0 CORR 1<br />

0 CORR .6 1<br />

0 CORR .7 .8 1<br />

1 MEAN 9 8 7<br />

1 SD 5 6 7<br />

1 N 9 9 9<br />

1 CORR 1<br />

1 CORR .4 1<br />

1 CORR .3 .2 1<br />

END DATA.<br />

LIST.<br />

• The split variable S1 has two values: 0 and 1. Two separate matrices are entered in the<br />

data, one for each value S1.<br />

• S1 must be specified on both VARIABLES and SPLIT.<br />

Example<br />

MATRIX DATA VARIABLES=V1 TO V3 /CONTENTS=MEAN SD N CORR<br />

/SPLIT=SPL.<br />

BEGIN DATA<br />

5 4 3<br />

1 2 3<br />

9 9 9<br />

1<br />

.6 1<br />

.7 .8 1<br />

9 8 7<br />

5 6 7<br />

9 9 9<br />

1<br />

.4 1<br />

.3 .2 1<br />

END DATA.<br />

LIST.

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

Saved successfully!

Ooh no, something went wrong!