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.

242 CLUSTER<br />

Split Files<br />

• VARNAME_ is a string variable that takes the values VAR1, VAR2 ...VARn, to correspond<br />

to the names of the distance variables in the matrix (VAR1, VAR2 ... VARn, where n is the<br />

number of cases in the largest split file). The numeric suffix for the variable names is consecutive<br />

and may not be the same as the actual case number.<br />

• The remaining variables in the matrix file are the distance variables used to form the<br />

matrix. The distance variables are assigned variable labels in the form of CASE m to<br />

identify the actual number of each case.<br />

• When split-file processing is in effect, the first variables in the matrix data file are the split<br />

variables, followed by ROWTYPE_, the case-identifier variable or ID, VARNAME_, and the<br />

distance variables.<br />

• A full set of matrix materials is written for each split-file group defined by the split variables.<br />

• A split variable cannot have the same name as any other variable written to the matrix<br />

data file.<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 procedure.<br />

Missing Values<br />

Example<br />

Missing-value treatment affects the values written to a matrix data file. When reading a<br />

matrix data file, be sure to specify a missing-value treatment on CLUSTER that is compatible<br />

with the treatment that was in effect when the matrix materials were generated.<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 CHURCHES TO TAXRATE<br />

/ID=CITY<br />

/MEASURE=EUCLID<br />

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

• CLUSTER reads raw data from file ALMANAC1 and writes one set of matrix materials to<br />

file CLUSMTX.<br />

• The working data file is still the ALMANAC1 file defined on DATA LIST. Subsequent commands<br />

are executed on ALMANAC1.

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

Saved successfully!

Ooh no, something went wrong!