G03EJF computes a cluster indicator variable from the results of
G03ECF.
Given a distance or dissimilarity matrix for
objects, cluster analysis aims to group the
objects into a number of more or less homogeneous groups or clusters. With agglomerative clustering methods (see
G03ECF), a hierarchical tree is produced by starting with
clusters each with a single object and then at each of
stages, merging two clusters to form a larger cluster until all objects are in a single cluster. G03EJF takes the information from the tree and produces the clusters that exist at a given distance. This is equivalent to taking the dendrogram (see
G03EHF) and drawing a line across at a given distance to produce clusters.
As an alternative to giving the distance at which clusters are required, you can specify the number of clusters required and G03EJF will compute the corresponding distance. However, it may not be possible to compute the number of clusters required due to ties in the distance matrix.
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
X04AAF).
The accuracy will depend upon the accuracy of the distances in
CD and
DORD (see
G03ECF).
A fixed number of clusters can be found using the non-hierarchical method used in
G03EFF.
Data consisting of three variables on five objects are input. Euclidean squared distances are computed using
G03EAF and median clustering performed using
G03ECF. A dendrogram is produced by
G03EHF and printed. G03EJF finds two clusters and the results are printed.