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.

974 MATRIX DATA<br />

Within-Cells Record Definition<br />

When the data include factors and ROWTYPE_ is not specified, CONTENTS distinguishes between<br />

within-cells and pooled records by enclosing the keywords for within-cells records in<br />

parentheses.<br />

• If the records associated with the within-cells keywords appear together for each set of<br />

factor values, enclose the keywords together within a single set of parentheses.<br />

• If the records associated with each within-cells keyword are grouped together across factor<br />

values, enclose the keyword within its own parentheses.<br />

Example<br />

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

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

• MEAN, SD, and N contain within-cells information and are therefore specified within parentheses.<br />

CORR is outside the parentheses because it identifies pooled records.<br />

• CELLS is required because there is a factor specified and ROWTYPE_ is implicit.<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 4 5 6<br />

2 6 5 4<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 mean, standard deviation,<br />

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

and N for value 2 of factor F1.<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 />

2 4 5 6<br />

1 3 2 1<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.

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

Saved successfully!

Ooh no, something went wrong!