CLUSTER
Hierarchical agglomerative clustering of cases, with agglomeration schedule, dendrogram, icicle plot and saved memberships.
Syntax
Section titled “Syntax”CLUSTER varlist | /MATRIX=IN(dataset) [/MEASURE=SEUCLID|EUCLID|BLOCK|CHEBYCHEV|MINKOWSKI(p)|POWER(p,r)|COSINE|CORRELATION] [/METHOD=BAVERAGE|WAVERAGE|SINGLE|COMPLETE|CENTROID|MEDIAN|WARD] [/STANDARDIZE=Z|RANGE] [/ID=var] [/PRINT=SCHEDULE CLUSTER(min,max) DISTANCE SILHOUETTE NONE] [/PLOT=DENDROGRAM VICICLE HICICLE NONE] [/SAVE=CLUSTER(min,max)].Synopsis
Section titled “Synopsis”| Kind | Procedure (reads data, produces output) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | yes, undoable |
| Subcommands | /ID, /MATRIX, /MEASURE, /METHOD, /MISSING, /PLOT, /PRINT, /SAVE, /STANDARDIZE, /VARIABLES |
| Menu | Analyze ▸ Classify |
| Slot: Variables | 0+ variable(s); levels: scale, ordinal; types: numeric |
| Slot: Label Cases by | 0–1 variable(s); levels: nominal, ordinal, scale; types: numeric, string |
Specifications
Section titled “Specifications”- METHOD: linkage: BAVERAGE between-groups average (default), WAVERAGE within-groups average, SINGLE, COMPLETE, CENTROID, MEDIAN, WARD
- MEASURE: SEUCLID (default) and other distances; COSINE and CORRELATION are similarities
- PRINT: SCHEDULE (default) agglomeration schedule; CLUSTER(min,max) memberships; DISTANCE the proximity matrix; SILHOUETTE coefficients
- SAVE: CLUSTER(min,max) saves memberships as CLUk_n for each solution
Examples
Section titled “Examples”CLUSTER x1 TO x5 /METHOD=WARD /STANDARDIZE=Z /PRINT=SCHEDULE CLUSTER(2,4) /PLOT=DENDROGRAM /SAVE=CLUSTER(3).CLUSTER /MATRIX=IN(dist) /METHOD=COMPLETE /PLOT=DENDROGRAM.- Clusters are numbered by their first case, as in SPSS. Ward coefficients are the cumulative within-cluster sum of squares.
- Up to 5,000 cases; use QUICK CLUSTER or TWOSTEP CLUSTER for larger files. Case weights are ignored.
Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.