R/group_variables.R
group_variables.Rd
Divides correlated features into groups, called aspects. Division is based on correlation cutoff level.
group_variables(x, h, clust_method = "complete", cor_method = "spearman")
x | hclust object |
---|---|
h | correlation value for tree cutting |
clust_method | the agglomeration method to be used
see |
cor_method | the correlation method to be used
see |
list with aspect
library("DALEX") dragons_data <- dragons[,c(2,3,4,7,8)] group_variables(dragons_data, h = 0.5, clust_method = "complete")