1. Home
  2. HPCLUSTERS procedure

HPCLUSTERS procedure

Prints a set of clusters (R.W. Payne).

Option

UNITS = variate or text Names to use for the units in the clusters

Parameters

CLUSTERS = pointers Clusters to print
EXTRA = pointers Extra information to print

Description

HPCLUSTERS can print a set of clusters. The clusters are specified by the CLUSTERS parameter, in a pointer containing a variate for each cluster. The variates contain the numbers of the units in their respective clusters (and the numbers are the row or column positions of their units in the similarity matrix used by HCLUSTER). The cluster pointers can be formed by the HFCLUSTERS procedure.

The UNITS option can be set to a text or a variate, to provide textual labels or other numbers to use for the units of the clusters, instead of the numbers in the CLUSTER variates.

You can supply extra information to print, in a pointer, using the EXTRA parameter. It should contain variates, texts or factors, with the same number of values as the CLUSTERS pointer.

Option: UNIT.
Parameters: CLUSTERS, EXTRA.

See also

Directive: HCLUSTER.
Procedure: HFCLUSTERS.
Commands for: Multivariate and cluster analysis.

Example

CAPTION         'HPCLUSTERS example',\
                'Data from the Guide to Genstat, Part 2, Section 6.1.2.';\
                STYLE=meta,plain
TEXT            [VALUES=Estate,'Arna1.5','Alfa2.5',Mondialqc,Testarossa,\
                Croma,Panda,Regatta,Regattad,Uno,X19,Contach,Delta,Thema,\
                Y10,Spider] Cars
POINTER         [VALUES=CC,NCyl,Tank,Wt,Length,Width,Ht,WBase,TSpeed,StSt,\
                Carb,Drive] Vars
VARIATE         [NVALUES=Cars] Vars[]
READ            [PRINT=errors] Vars[]
 1490  4  50  966 414 161 133 245 177 10.9  1  2
 1409  4  50  845 399 162 139 242 174 10.2  1  2
 2492  6  49 1160 433 163 140 251 210  8.2  1  1
 3185  8  87 1430 458 179 126 265 249  7.4  2  1
 4942 12 120 1506 449 198 113 255 291  5.8  2  1
 1995  4  70 1180 450 176 143 266 209  7.8  2  2
  965  4  35  761 338 149 146 216 134 16.8  1  2
 1585  4  55  970 426 165 141 244 180 10.0  1  2
 1714  4  55  980 426 165 141 245 150 18.9  3  2
  999  4  42  720 364 155 143 236 145 16.2  1  2
 1498  4  48  912 397 157 118 220 171 11.0  1  1
 5167 12 120 1446 414 200 107 245 286  4.9  1  1
 1585  4  45 1000 389 162 138 247 195  8.2  1  2
 1995  4  70 1150 459 175 143 266 224  7.6  2  2
 1049  4  47  790 339 151 143 216 179 11.8  1  2
 1995  4  45 1050 414 162 125 228 190  9.0  2  1 :
SYMMETRICMATRIX [ROWS=Cars] CarSim
FSIMILARITY     [SIMILARITY=CarSim]\
                Vars[]; TEST=4(cityblock,euclidean),2(cityblock,simplematching)
HCLUSTER        [PRINT=dendrogram; METHOD=average] CarSim; AMALGAMATIONS=Amalg;\
                PERMUTATION=Perm
" form the clusters and their similarities "
HFCLUSTERS      Amalg; CLUSTERS=Clusters; SIMILARITIES=Similarity
" print the clusters with their similarities "
POINTER         [VALUES=Similarity] Extra
HPCLUSTERS      Clusters; EXTRA=Extra
Updated on September 11, 2019

Was this article helpful?