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.

Example<br />

Overview<br />

Options<br />

CLUSTER V1 TO V4<br />

/PLOT=DENDROGRAM<br />

/PRINT=CLUSTER (2,4).<br />

CLUSTER 227<br />

CLUSTER produces hierarchical clusters of items based on distance measures of dissimilarity<br />

or similarity. The items being clustered are usually cases from the working data file, and the<br />

distance measures are computed from their values for one or more variables. You can also<br />

cluster variables if you read in a matrix measuring distances between variables. Cluster analysis<br />

is discussed in Anderberg (1973).<br />

Cluster Measures and Methods. You can specify one of 37 similarity or distance measures on<br />

the MEASURE subcommand and any of the seven methods on the METHOD subcommand.<br />

New Variables. You can save cluster membership for specified solutions as new variables in<br />

the working data file using the SAVE subcommand.<br />

Display and Plots. You can display cluster membership, the distance or similarity matrix used<br />

to cluster variables or cases, and the agglomeration schedule for the cluster solution with<br />

the PRINT subcommand. You can request either a horizontal or vertical icicle plot or a dendrogram<br />

of the cluster solution and control the cluster levels displayed in the icicle plot with<br />

the PLOT subcommand. You can also specify a variable to be used as a case identifier in the<br />

display on the ID subcommand.<br />

Matrix Input and Output. You can write out the distance matrix and use it in subsequent<br />

CLUSTER, PROXIMITIES, or ALSCAL analyses or read in matrices produced by other CLUSTER<br />

or PROXIMITIES procedures using the MATRIX subcommand.<br />

Basic Specification<br />

The basic specification is a variable list. CLUSTER assumes that the items being clustered are<br />

cases and uses the squared Euclidean distances between cases on the variables in the analysis<br />

as the measure of distance.<br />

Subcommand Order<br />

• The variable list must be specified first.<br />

• The remaining subcommands can be specified in any order.<br />

<strong>Syntax</strong> Rules<br />

• The variable list and subcommands can each be specified once.

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

Saved successfully!

Ooh no, something went wrong!