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.

Example<br />

Example<br />

Example<br />

Example<br />

FACTOR 561<br />

• If split-file processing is in effect when a matrix is written, the same split file must be in<br />

effect when that matrix is read by any other procedure.<br />

GET FILE=GSS80 /KEEP ABDEFECT TO ABSINGLE.<br />

FACTOR VARIABLES=ABDEFECT TO ABSINGLE<br />

/MATRIX OUT(COR=CORMTX).<br />

• FACTOR retrieves the GSS80 file and writes a factor correlation matrix to the file CORMTX.<br />

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

GET FILE=GSS80 /KEEP ABDEFECT TO ABSINGLE.<br />

FACTOR VARIABLES=ABDEFECT TO ABSINGLE<br />

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

LIST.<br />

• FACTOR writes the same matrix as in the previous example.<br />

• The working data file is replaced with the correlation matrix. The LIST command is<br />

executed on the matrix file, not on GSS80.<br />

GET FILE=GSS80 /KEEP ABDEFECT TO ABSINGLE.<br />

FACTOR VARIABLES=ABDEFECT TO ABSINGLE<br />

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

• FACTOR generates a factor loading matrix that replaces the working data file.<br />

GET FILE=COUNTRY /KEEP SAVINGS POP15 POP75 INCOME GROWTH.<br />

REGRESSION MATRIX OUT(*)<br />

/VARS=SAVINGS TO GROWTH<br />

/MISS=PAIRWISE<br />

/DEP=SAVINGS /ENTER.<br />

FACTOR MATRIX IN(COR=*) /MISSING=PAIRWISE.<br />

• The GET command retrieves the COUNTRY file and selects the variables needed for the<br />

analysis.<br />

• The REGRESSION command computes correlations among five variables with pairwise<br />

deletion. MATRIX=OUT writes a matrix data file, which replaces the working data file.<br />

• MATRIX IN(COR=*) on FACTOR reads the matrix materials REGRESSION has written to the<br />

working data file. An asterisk is specified because the matrix materials are in the working<br />

data file. FACTOR uses pairwise deletion, since this is what was in effect when the matrix<br />

was built.

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

Saved successfully!

Ooh no, something went wrong!