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 />

PROXIMITIES 1291<br />

GET FILE=CRIME.<br />

PROXIMITIES MURDER TO MOTOR<br />

/ID=CITY<br />

/MEASURE=EUCLID<br />

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

• PROXIMITIES reads data from the SPSS-format data file CRIME and writes one set of<br />

matrix materials to file PROXMTX.<br />

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

GET FILE=CRIME.<br />

PROXIMITIES MURDER TO MOTOR<br />

/ID=CITY<br />

/MEASURE=EUCLID<br />

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

LIST.<br />

• PROXIMITIES 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 CRIME file.<br />

GET FILE PRSNNL.<br />

FREQUENCIES VARIABLE=AGE.<br />

PROXIMITIES CASE1 TO CASE8<br />

/ID=CITY<br />

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

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

file containing matrix data for PROXIMITIES.<br />

• MATRIX=IN specifies the matrix data file PROXMTX. PROXMTX does not replace PRSNNL<br />

as the working data file.<br />

GET FILE PROXMTX.<br />

PROXIMITIES CASE1 TO CASE8<br />

/ID=CITY<br />

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

• This example assumes that you are starting a new session and want to read an existing<br />

matrix data file. GET retrieves the matrix file PROXMTX.<br />

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

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

• If the GET command is omitted, the program issues an error message.

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

Saved successfully!

Ooh no, something went wrong!