| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Statistics Toolbox |
| Contents | Index |
| Learn more about Statistics Toolbox |
manovacluster(stats)
manovacluster(stats,method)
H = manovacluster(stats,method)
manovacluster(stats) generates a dendrogram plot of the group means after a multivariate analysis of variance (MANOVA). stats is the output stats structure from manova1. The clusters are computed by applying the single linkage method to the matrix of Mahalanobis distances between group means.
See dendrogram for more information on the graphical output from this function. The dendrogram is most useful when the number of groups is large.
manovacluster(stats,method) uses the specified method in place of single linkage. method can be any of the following character strings that identify ways to create the cluster hierarchy. (See linkage for additional information.)
| Method | Description |
|---|---|
'single' | Shortest distance (default) |
'complete' | Largest distance |
'average' | Average distance |
'centroid' | Centroid distance |
'ward' | Incremental sum of squares |
H = manovacluster(stats,method) returns a vector of handles to the lines in the figure.
Let's analyze the larger car data set to determine which countries produce cars with the most similar characteristics.
load carbig X = [MPG Acceleration Weight Displacement]; [d,p,stats] = manova1(X,Origin); manovacluster(stats)

cluster, dendrogram, linkage, manova1
![]() | manova1 | margin (CompactTreeBagger) | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |