Home   >   User Resources   >   Online Help   >   apaClustering.Hierarchical.WardLinkage
 

 

Function index Version 3.0.0

apaClustering.Hierarchical.WardLinkage(DistanceMatrix)

Excel=apaClustering.Hierarchical.WardLinkage(DistanceMatrix)

Result

Performs a hierarchical cluster analysis based on Ward’s linkage method. Returns a (NumberOfElements-1) x 4 matrix with one row per merge. Column 1 is the index of the cluster, column 2 the index of the first cluster constituent, column 3 the index of the second cluster constituent and column 4 the height of the cluster, i.e. the distance at which the two constituents are merged, on the scale of the input distances.

Syntax

DistanceMatrix: n x n distance matrix, e.g. from apaDistances.Euclidian

Remarks

DistanceMatrix should contain Euclidean distances. At each step, the two clusters whose merge causes the smallest increase in the within-cluster sum of squares are merged. The Lance-Williams update of Ward’s method is applied to the squared distances, and the reported heights are their square roots, so they are on the scale of the input distances. The results correspond to the Ward method of scipy and to ward.D2 in R.