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.

1198 PARTIAL CORR<br />

Example<br />

Example<br />

Example<br />

Example<br />

GET FILE=CITY.<br />

PARTIAL CORR VARIABLES=BUSDRVER MECHANIC ENGINEER TEACHER COOK<br />

BY NETSALRY(1) /MATRIX=OUT(*).<br />

LIST.<br />

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

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

on the CITY file.<br />

GET FILE=PRSNNL.<br />

FREQUENCIES VARIABLE=AGE.<br />

PARTIAL CORR VARIABLES=BUSDRVER MECHANIC ENGINEER TEACHER COOK<br />

BY NETSALRY(1) /MATRIX=IN(CORMTX).<br />

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

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

• MATRIX=IN specifies the matrix data file. Both the working data file and the CORMTX file<br />

must contain all variables specified on the VARIABLES subcommand on PARTIAL CORR.<br />

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

GET FILE=CORMTX.<br />

PARTIAL CORR VARIABLES=BUSDRVER MECHANIC ENGINEER TEACHER COOK<br />

BY NETSALRY(1)<br />

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

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

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

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

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

GET FILE=CITY.<br />

REGRESSION MATRIX=OUT(*)<br />

/VARIABLES=NETPURSE PUBTRANS MECHANIC BUSDRVER<br />

/DEPENDENT=NETPURSE /ENTER.<br />

PARTIAL CORR PUBTRANS MECHANIC BUSDRVER BY NETPURSE(1) /MATRIX=IN(*)<br />

.<br />

• GET retrieves the SPSS-format data file CITY.

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

Saved successfully!

Ooh no, something went wrong!