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.

CLUSTER 237<br />

MEDIAN Median clustering (WPGMC). Squared Euclidean distances are commonly<br />

used with this method.<br />

WARD Ward’s method. Squared Euclidean distances are commonly used with this<br />

method.<br />

Example<br />

CLUSTER V1 V2 V3<br />

/METHOD=SINGLE COMPLETE WARDS.<br />

• This example clusters cases based on their values for variables V1, V2, and V3, and uses<br />

three clustering methods: single linkage, complete linkage, and Ward’s method.<br />

SAVE Subcommand<br />

SAVE allows you to save cluster membership at specified solution levels as new variables in<br />

the working data file.<br />

• The specification on SAVE is the CLUSTER keyword, followed by either a single number<br />

indicating the level (number of clusters) of the cluster solution or a range separated by a<br />

comma indicating the minimum and maximum numbers of clusters when membership of<br />

more than one solution is to be saved. The number or range must be enclosed in<br />

parentheses and applies to all methods specified on METHOD.<br />

• You can specify a rootname in parentheses after each method specification on the METHOD<br />

subcommand. CLUSTER forms new variable names by appending the number of the cluster<br />

solution to the rootname.<br />

• If no rootname is specified, CLUSTER forms variable names using the formula CLUn_m,<br />

where m increments to create a unique rootname for the set of variables saved for one<br />

method and n is the number of the cluster solution.<br />

• The names and descriptive labels of the new variables are displayed in the procedure<br />

information notes.<br />

• You cannot use the SAVE subcommand if you are replacing the working data file with<br />

matrix materials (see “Matrix Output” on p. 240).<br />

Example<br />

CLUSTER A B C<br />

/METHOD=BAVERAGE SINGLE (SINMEM) WARD<br />

/SAVE=CLUSTERS(3,5).<br />

• This command creates nine new variables: CLU5_1, CLU4_1, and CLU3_1 for BAVERAGE,<br />

SINMEM5, SINMEM4, and SINMEM3 for SINGLE, and CLU5_2, CLU4_2, and CLU3_2 for<br />

WARD. The variables contain the cluster membership for each case at the five-, four-, and<br />

three-cluster solutions using the three clustering methods. Ward’s method is the third<br />

specification on METHOD but uses the second set of default names since it is the second<br />

method specified without a rootname.<br />

• The order of the new variables in the working data file is the same as listed above, since<br />

the solutions are obtained in the order from 5 to 3.<br />

• New variables are listed in the procedure information notes.

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

Saved successfully!

Ooh no, something went wrong!