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 DATA 975<br />

• The parentheses around each CONTENTS keyword indicate that the data include the<br />

means for all cells, followed by the standard deviations for all cells, followed by the N<br />

values for all the cells.<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 />

2 4 5 6<br />

2 6 5 4<br />

1 9 9 9<br />

2 9 9 9<br />

1<br />

.6 1<br />

.7 .8 1<br />

END DATA.<br />

• The parentheses around the CONTENTS keywords indicate that the data include the mean<br />

and standard deviation for value 1 of F1, followed by the mean and standard deviation for<br />

value 2 of F1, followed by the N values for all cells.<br />

Optional Specification When ROWTYPE_ Is Explicit<br />

When ROWTYPE_ is explicitly named on VARIABLES, MATRIX DATA uses ROWTYPE_ values<br />

to determine record types.<br />

• When ROWTYPE_ is explicitly named on VARIABLES, CONTENTS can be used for informational<br />

purposes. However, ROWTYPE_ values in the data determine record types.<br />

• If MATRIX DATA reads values for ROWTYPE_ that are not specified on CONTENTS, it issues<br />

a warning.<br />

• Missing values for factors are entered as periods, even though CONTENTS is specified<br />

(see the FACTORS subcommand on p. 970).<br />

Example<br />

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

/FACTORS=F1 F2 /CONTENTS=(MEAN SD N) CORR.<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 />

CORR . . 1<br />

CORR . . .6 1<br />

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

END DATA.<br />

• ROWTYPE_ is specified on VARIABLES. MATRIX DATA therefore uses ROWTYPE_ values<br />

in the data to identify record types.

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

Saved successfully!

Ooh no, something went wrong!