hclustvar2 {ClustOfVar} | R Documentation |
Hierarchical clustering of variables from a covariance matrix
Description
Ascendant hierarchical clustering of a set of variables from a covariance/correlation matrix.
Usage
hclustvar2(x, init = NULL)
Arguments
x |
a covariance or correlation matrix. |
init |
an initial partition (a vector of integers indicating the cluster to which each variable is allocated). |
Value
height |
a set of p-1 non-decreasing real values: the values of the aggregation criterion. |
clusmat |
a p by p matrix with group memberships where each column k corresponds to the elements of the partition in k clusters. |
merge |
a p-1 by 2 matrix. Row i of |
See Also
cutreevar
, plot.hclustvar
,
stability
Examples
data(decathlon)
x <- cor(decathlon[,1:10])
tree <- hclustvar2(x)
plot(tree, hang = -1, xlab="", sub="")