1. Home
  2. HFAMALGAMATIONS procedure

HFAMALGAMATIONS procedure

Forms an amalgamations matrix from a minimum spanning tree (R.W. Payne).

No options

Parameters

TREE = matrices Minimum spanning tree
AMALGAMATIONS = matrices Saves the amalgamation matrices formed from the minimum spanning trees

Description

Amalgamation matrices can be formed by HCLUSTER for all methods except single linkage. These can then be used, for example, by the HFCLUSTERS procedure to provide the set of clusters formed during the cluster analyses.

Information about a single-linkage cluster analysis can be saved, as a minimum spanning tree, by the HDISPLAY directive. HFAMALGAMATIONS can then use this to form an amalgamations matrix. The minimum spanning tree is supplied by the TREE parameter, and the amalgamations matrix is saved by the AMALGAMATIONS parameter.

Options: none.
Parameters: TREE, AMALGAMATIONS.

See also

Directives: HCLUSTER, HDISPLAY.
Procedures: HFCLUSTERS, HPCLUSTERS.
Commands for: Multivariate and cluster analysis.

Example

CAPTION         'HFAMALGAMATIONS 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=*; METHOD=single] CarSim; PERMUTATION=Perm
HDISPLAY        CarSim; TREE=MST
DDENDROGRAM     [STYLE=average; ORDERING=given; DSIMILARITY=yes] DATA=MST;\
                PERMUTATION=Perm; LABELS=Cars; WINDOW=3
" form an amalgamations matrix from the minimum spanning tree,
  so that HFCLUSTERS can form the clusters "
HFAMALGAMATIONS MST; AMALGAMATIONS=Amalg
" form the clusters and save their similarities to plot on the dendrogram "
HFCLUSTERS      Amalg; CLUSTERS=Clusters; SIMILARITIES=Similarity
DCLUSTERLABELS  [WINDOW=3] #Clusters; LABEL=#Similarity
Updated on September 12, 2019

Was this article helpful?