FactomineR:补充个体的簇 [英] FactomineR : Clusters of the supplementary individuals

查看:74
本文介绍了FactomineR:补充个体的簇的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MCA上的FactomineR进行层次聚类分析.一切运行都很好.

I'm performing a Hierarchical Clustering Analysis using FactomineR on an MCA. All runs perfectly well.

我在MCA中添加了一些补充人员.但是我想知道它们将位于哪些群集中.目前,我只对活动的个体(使用 res.hcpc $ data.clust res.hcpc $ call $ X )获得结果

I have put some supplementary individuals in my MCA. But I want to know in which clusters they will be. For the moment I only have the results on the active individuals (with res.hcpc$data.clust or res.hcpc$call$X)

您知道怎么可能知道所有补充人员都在哪个集群中吗?

Do you know how it could be possible to know in which cluster all of the supplementary individuals are ?

谢谢

推荐答案

据我所知,集群中没有等效的补充人员.但是,您可以在活动行和补充行的坐标上执行聚类,例如(假设 res.mca 保留了 MCA 对象)

To my knowledge, there is no equivalent of supplementary individuals in clustering. However, you can perform the clustering on the coordinates of both active and supplementary rows, like this (assuming res.mca holds your MCA object)

r <- rbind(res.mca$ind$coord,
           res.mca$ind.sup$coord)
res.hclust <- hclust(dist(r),method="ward.D")

这篇关于FactomineR:补充个体的簇的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆