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.

964 MATRIX DATA<br />

Example<br />

* Matrix data with procedure ONEWAY.<br />

MATRIX DATA VARIABLES=EDUC ROWTYPE_ WELL /FACTORS=EDUC.<br />

BEGIN DATA<br />

1 N 65<br />

2 N 95<br />

3 N 181<br />

4 N 82<br />

5 N 40<br />

6 N 37<br />

1 MEAN 2.6462<br />

2 MEAN 2.7737<br />

3 MEAN 4.1796<br />

4 MEAN 4.5610<br />

5 MEAN 4.6625<br />

6 MEAN 5.2297<br />

. MSE 6.2699<br />

. DFE 494<br />

END DATA.<br />

ONEWAY WELL BY EDUC(1,6) /MATRIX=IN(*)<br />

• One of the two types of matrices that the ONEWAY procedure reads includes a vector of<br />

frequencies for each factor level, a vector of means for each factor level, a record containing<br />

the pooled variance (within-group mean square error), and the degrees of freedom for<br />

the mean square error. MATRIX DATA is used to generate a working data file containing<br />

this type of matrix data for the ONEWAY procedure.<br />

• ROWTYPE_ is explicit on VARIABLES and identifies record types.<br />

• Because factors are present in the data, the continuous variables (WELL) must be specified<br />

last on VARIABLES and must be last in the data.<br />

• The FACTORS subcommand identifies EDUC as the factor variable.<br />

• MSE is entered in the data as the ROWTYPE_ value for the vector of square pooled standard<br />

deviations.<br />

• DFE is entered in the data as the ROWTYPE_ value for the vector of degrees of freedom.<br />

• Records with pooled information have the system-missing value (.) for the factors.<br />

VARIABLES Subcommand<br />

VARIABLES specifies the names of the variables in the raw data and the order in which they<br />

occur.<br />

• VARIABLES is required.<br />

• There is no limit to the number of variables that can be specified.<br />

• If ROWTYPE_ is specified on VARIABLES, the continuous variables must be the last variables<br />

specified on the subcommand and must be last in the data.<br />

• If split-file variables are present, they must also be specified on SPLIT.<br />

• If factor variables are present, they must also be specified on FACTORS.

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

Saved successfully!

Ooh no, something went wrong!