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.

1292 PROXIMITIES<br />

Example<br />

Example<br />

GET FILE=CRIME.<br />

PROXIMITIES MURDER TO MOTOR<br />

/ID=CITY<br />

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

PROXIMITIES<br />

/MATRIX=IN(*)<br />

/STANDARDIZE.<br />

• GET retrieves the SPSS-format data file CRIME.<br />

• The first PROXIMITIES command specifies variables for the analysis and reads data from<br />

file CRIME. ID specifies CITY as the case identifier. MATRIX writes the resulting matrix to<br />

the working data file.<br />

• The second PROXIMITIES command uses the matrix file written by the first PROXIMITIES<br />

command as input. The asterisk indicates that the matrix file is the working data file. The<br />

variable list is omitted, indicating that all variables in the matrix are to be used.<br />

• The slash preceding the MATRIX subcommand on the second PROXIMITIES is required.<br />

Without the slash, PROXIMITIES would attempt to interpret MATRIX as a variable name<br />

rather than as a subcommand.<br />

In this example, PROXIMITIES and FACTOR are used for a Q-factor analysis, in which<br />

factors account for variance shared among observations rather than among variables. Procedure<br />

FACTOR does not perform Q-factor analysis without some preliminary transformation<br />

such as that provided by PROXIMITIES. Because the number of cases exceeds the number of<br />

variables, the model is not of full rank and FACTOR will print a warning. This is a common<br />

occurrence when case-by-case matrices from PROXIMITIES are used as input to FACTOR.<br />

* Recoding a PROXIMITIES matrix for procedure FACTOR.<br />

GET FILE=CRIME.<br />

PROXIMITIES MURDER TO MOTOR<br />

/MEASURE=CORR<br />

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

GET FILE=TEMPFILE/DROP=ID.<br />

RECODE ROWTYPE_ (’PROX’ = ’CORR’).<br />

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

• The MATRIX subcommand on PROXIMITIES writes the correlation matrix to the working<br />

data file. Because the matrix materials will be used in procedure FACTOR, the ID subcommand<br />

is not specified.<br />

• RECODE recodes ROWTYPE_ values PROX to CORR so procedure FACTOR can read the<br />

matrix.<br />

• When FACTOR reads matrix materials, it reads all the variables in the file. The MATRIX<br />

subcommand on FACTOR indicates that the matrix is a correlation matrix and data are in<br />

the working data file.

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

Saved successfully!

Ooh no, something went wrong!