hclust
is performed using
1 - the absolute correlation as a distance measure between tow variables. corclust(x, cl = NULL, mincor = NULL, prnt = FALSE, method = "complete")
complete
linkage.complete
. This choice is meaningful as it represents the
minimum absolute correlation between all variables of a cluster.\
Further proceeding would consist in chosing one variable of each cluster to obtain a
subset of rather uncorrelated variables for further analysis.\
If an additional class vector cl
is given to the function for any two variables their minimum
correlation over all classes is used.
hclust
, for details on the clustering algorithm. data(iris)
classes <- iris$Species
variables <- iris[,1:4]
corclust(variables, classes, mincor = 0.6)
Run the code above in your browser using DataLab