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

DATA LIST FILE=ALMANAC1 RECORDS=3<br />

/1 CITY 6-18(A) POP80 53-60<br />

/2 CHURCHES 10-13 PARKS 14-17 PHONES 18-25 TVS 26-32<br />

RADIOST 33-35 TVST 36-38 TAXRATE 52-57(2).<br />

N OF CASES 8.<br />

CLUSTER 243<br />

CLUSTER CHURCHES TO TAXRATE<br />

/ID=CITY<br />

/MEASURE=EUCLID<br />

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

LIST.<br />

• CLUSTER writes the same matrix as in the previous example. However, the matrix data<br />

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

on ALMANAC1.<br />

GET FILE=CLUSMTX.<br />

CLUSTER<br />

/ID=CITY<br />

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

• This example starts a new session and reads an existing matrix data file. GET retrieves the<br />

matrix data file CLUSMTX.<br />

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

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

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

GET FILE=PRSNNL.<br />

FREQUENCIES VARIABLE=AGE.<br />

CLUSTER<br />

/ID=CITY<br />

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

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

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

• The variable list is omitted on the CLUSTER command. By default, all cases in the matrix<br />

file are used in the analysis.<br />

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

• CLUSMTX does not replace PRSNNL as the working data file.

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

Saved successfully!

Ooh no, something went wrong!