statable Statistics for study and research

Which groups are in the data? (cluster analysis)

In brief

You want to know whether cases can be divided into groups that are alike on several numbers - for example students by motivation, anxiety and study time. Statable offers Ward's method (joining step by step, with a dendrogram) and k-means (a fixed number of groups). Cluster analyses always find groups, even in random data; whether they make sense is a question of the subject.

What the table looks like

One row per case, at least two columns with numbers (at most 30). Cases with missing values in one of the features are not included; the number is shown in the result. Statable calculates on z-standardized values so that a feature with large numbers (hours) does not decide alone. This is a decision of the subject and can be switched off if all features have the same unit.

The number of groups

Reading the result

Requirements and limits

Reporting the result

Ward's method (ward.D2, Euclidean, z-standardized), 3 groups (n = 43, 39, 36); mean silhouette = .41

For specialists

R 4.6 (stats): hclust(dist(Z), "ward.D2") with the height √(2·ΔESS) (Murtagh & Legendre 2014); kmeans with Hartigan-Wong, iter.max = 100, 25 starts from distinct cases, seed 20261008, Lloyd on abort. Groups are numbered by size so that the numbers stay the same when the seed changes. Silhouette (Rousseeuw 1987) and η² in JavaScript, checked against cluster::silhouette.

Typical examples

Related

Open in Statable