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.

Example<br />

Example<br />

Example<br />

Example<br />

ONEWAY 1169<br />

GET FILE=GSS80.<br />

ONEWAY WELL BY EDUC6<br />

/MATRIX=OUT(ONEMTX).<br />

• ONEWAY reads data from file GSS80 and writes one set of matrix materials to the file<br />

ONEMTX.<br />

• The working data file is still GSS80. Subsequent commands are executed on GSS80.<br />

GET FILE=GSS80.<br />

ONEWAY WELL BY EDUC6<br />

/MATRIX=OUT(*).<br />

LIST.<br />

• ONEWAY writes the same matrix as in the example above. However, the matrix data file<br />

replaces the working data file. The LIST command is executed on the matrix file, not on<br />

the GSS80 file.<br />

GET FILE=PRSNNL.<br />

FREQUENCIES VARIABLE=AGE.<br />

ONEWAY WELL BY EDUC6<br />

/MATRIX=IN(ONEMTX).<br />

• This example performs a frequencies analysis on PRSNNL and then uses a different file<br />

for ONEWAY. The file is an existing matrix data file.<br />

• MATRIX=IN specifies the matrix data file.<br />

• ONEMTX does not replace PRSNNL as the working data file.<br />

GET FILE=ONEMTX.<br />

ONEWAY WELL BY EDUC6<br />

/MATRIX=IN(*).<br />

• The GET command retrieves the matrix data file ONEMTX.<br />

• MATRIX=IN specifies an asterisk because the working data file is the matrix data file<br />

ONEMTX. If MATRIX=IN(ONEMTX) is specified, the program issues an error message, since<br />

ONEMTX is already open.<br />

• If the GET command is omitted, the program issues an error message.<br />

<strong>Reference</strong>s<br />

Speed, M. F. 1976. Response curves in the one way classification with unequal numbers of observations<br />

per cell. Proceedings of the Statistical Computing Section. American Statistical Association.

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

Saved successfully!

Ooh no, something went wrong!