Dendrogram of group mean clusters following MANOVA
H = manovacluster(stats,
a dendrogram plot of the group means after a multivariate analysis
of variance (MANOVA).
stats is the output
manova1. The clusters are
computed by applying the single linkage method to the matrix of Mahalanobis
distances between group means.
dendrogram for more
information on the graphical output from this function. The dendrogram
is most useful when the number of groups is large.
uses the specified method in place of single linkage.
can be one of these values, which identify the methods used to create the cluster
linkage for additional
Shortest distance (default)
Incremental sum of squares
H = manovacluster(stats, returns
a vector of handles to the lines in the figure.
Dendrogram of Group Means After MANOVA
Load the sample data.
Define the variable matrix.
X = [MPG Acceleration Weight Displacement];
Perform one-way MANOVA to compare the means of MPG, Acceleration, Weight,and Displacement grouped by Origin.
[d,p,stats] = manova1(X,Origin);
Create a dendrogram plot of the group means.