Skip to content

TwoStep Cluster

Clusters cases using categorical and continuous variables together, and chooses the number of clusters automatically with an information criterion (BIC or AIC).

  • To segment cases on a mix of variables, for example region and plan type together with age and spend.
  • When you do not know how many clusters to expect.
  • For large files: the first step summarises cases into sub-clusters, so the procedure scales well.
  • The log-likelihood distance assumes continuous variables are normal and categorical variables multinomial within clusters, and all variables independent. The method is fairly robust to moderate violations.
  • Categorical variables weigh heavily: a categorical variable that splits the cases cleanly can dominate the solution. Check the per-variable tables.
  • Results can depend on the order of cases. Rerun on a shuffled file to check stability.
  • Auto-Clustering: BIC (or AIC) for each number of clusters. The chosen solution balances a low criterion with a large ratio of distance measures.
  • Cluster Distribution gives the size of each cluster.
  • Centroids (continuous variables) and the per-variable frequency tables (categorical) describe each cluster.
  • Silhouette: an average above .5 means well separated clusters; below .25 means weak structure.

A two-step cluster analysis (log-likelihood distance, BIC) on region, plan type, age and monthly spend identified three clusters (silhouette = .41). Cluster 2 (38% of customers) consisted mainly of urban customers on the premium plan.

Syntax: TWOSTEP CLUSTER /CATEGORICAL VARIABLES=region plan /CONTINUOUS VARIABLES=age spend /NUMCLUSTERS AUTO 15 BIC /SAVE VARIABLE=segment.


This page comes from OrcStat’s built-in help (the same text as in the app’s Help panel). To suggest a change, open an issue.