R cluster analysis and dendrogram with correlation matrix

前端 未结 2 1984
慢半拍i
慢半拍i 2021-01-15 06:17

I have to perform a cluster analysis on a big amount of data. Since I have a lot of missing values I made a correlation matrix.

corloads = cor(df1[,2:185],          


        
2条回答
  •  日久生厌
    2021-01-15 06:54

    I'm happy to learn about the kgs function. Another option is using the find_k function from the dendextend package (it uses the average silhouette width). But given the kgs function, I might just add it as another option to the package. Also note the dendextend::color_branches function, to color your dendrogram with the number of clusters you end up choosing (you can see more about this here: https://cran.r-project.org/web/packages/dendextend/vignettes/introduction.html#setting-a-dendrograms-branches )

提交回复
热议问题