Skip to content

TWOSTEP CLUSTER

Two-step clustering of categorical and continuous variables that picks the number of clusters by BIC or AIC.

TWOSTEP CLUSTER [/CATEGORICAL VARIABLES=varlist] [/CONTINUOUS VARIABLES=varlist] [/DISTANCE LIKELIHOOD|EUCLIDEAN] [/NUMCLUSTERS AUTO [15] [BIC|AIC] | FIXED=k] [/STANDARDIZE=ALL|NONE] [/CRITERIA INITTHRESHOLD(0) MXBRANCH(8) MXLEVEL(3)] [/PRINT IC COUNT SUMMARY SILHOUETTE] [/SAVE VARIABLE=name].
Kind Procedure (reads data, produces output)
Body main /SUBCOMMAND[=] …
Changes data yes, undoable
Subcommands /CATEGORICAL, /CONTINUOUS, /CRITERIA, /DISTANCE, /HANDLENOISE, /INFILE, /MEMALLOCATE, /MISSING, /NUMCLUSTERS, /OUTFILE, /PRINT, /SAVE, /STANDARDIZE, /VIEWMODEL
Menu Analyze ▸ Classify
Slot: Categorical Variables 0+ variable(s); levels: nominal, ordinal; types: numeric, string
Slot: Continuous Variables 0+ variable(s); levels: scale; types: numeric
TWOSTEP CLUSTER /CATEGORICAL VARIABLES=region plan /CONTINUOUS VARIABLES=age spend /NUMCLUSTERS AUTO 10 BIC /SAVE VARIABLE=segment.
  • Continuous variables are standardized unless /STANDARDIZE=NONE. Euclidean distance needs continuous variables only.
  • Categorical variables weigh heavily in the log-likelihood distance; check the Frequencies tables before reading the clusters.
  • /HANDLENOISE p puts cases from sparse leaves into an outlier cluster numbered −1 (only when the clustering tree fills).

QUICK CLUSTER, CLUSTER


Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.