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.

972 MATRIX DATA<br />

Example<br />

MATRIX DATA VARIABLES=F1 VAR1 TO VAR3 /FACTORS=F1 /CELLS=2<br />

/CONTENTS=(MEAN SD N) CORR.<br />

BEGIN DATA<br />

1 5 4 3<br />

1 3 2 1<br />

1 9 9 9<br />

2 8 7 6<br />

2 6 7 8<br />

2 9 9 9<br />

1<br />

.6 1<br />

.7 .8 1<br />

END DATA.<br />

• The specification for CELLS is 2 because the factor variable F1 has two values (1 and 2)<br />

and there are therefore two sets of within-cells information.<br />

• If there were two factor variables, F1 and F2, and each had two values, 1 and 2, CELLS<br />

would equal 4 to account for all four possible factor combinations (assuming all 4 combinations<br />

are present in the data).<br />

CONTENTS Subcommand<br />

CONTENTS defines the record types when ROWTYPE_ is not included in the data. The minimum<br />

specification is a single keyword indicating a type of record. The default is CORR.<br />

• CONTENTS is required to define record types and record order whenever ROWTYPE_ is<br />

not specified on VARIABLES and its values are not in the data. The only exception to this<br />

rule is the rare situation in which all data values represent pooled correlation records and<br />

there are no factors. In that case, MATRIX DATA reads the data values and assigns the default<br />

ROWTYPE_ of CORR to all records.<br />

• The order in which keywords are specified on CONTENTS must correspond to the order<br />

in which records appear in the data. If the keywords on CONTENTS are in the wrong order,<br />

MATRIX DATA will incorrectly assign values.<br />

CORR Matrix of correlation coefficients. This is the default. If ROWTYPE_ is not<br />

specified on the VARIABLES subcommand and you omit the CONTENTS subcommand,<br />

MATRIX DATA assigns the ROWTYPE_ value CORR to all matrix<br />

rows.<br />

COV Matrix of covariance coefficients.<br />

MAT Generic square matrix.<br />

MSE Vector of mean squared errors.<br />

DFE Vector of degrees of freedom.<br />

MEAN Vector of means.<br />

STDDEV Vector of standard deviations. SD is a synonym for STDDEV. MATRIX DATA<br />

assigns the ROWTYPE_ value STDDEV to the record if either STDDEV or SD<br />

is specified.

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

Saved successfully!

Ooh no, something went wrong!