GET FILE='data/crime.sav.
PROXIMITIES MURDER TO MOTOR
/VIEW=VARIABLE
/MEASURE=PH2
/MATRIX=OUT(*).
CLUSTER
/MATRIX=IN(*).
-
PROXIMITIES
uses the data from crime.sav,
which is now the active dataset. The VIEW
subcommand specifies computation of proximity values between variables.
The MATRIX
subcommand writes
the matrix to the active dataset.
-
MATRIX=IN(*)
on the CLUSTER
command reads
the matrix materials from the active dataset. Since the matrix contains
distances between variables, CLUSTER
clusters variables based on distance measures in the input. The
variable list is omitted on the CLUSTER
command, so all variables are used in the analysis. The slash preceding
the MATRIX
subcommand is required
because there is an implied variable list. Without the slash, CLUSTER
would attempt to interpret MATRIX
as a variable name rather than a
subcommand name.