データを 5 つのクラスターにクラスター化したい場合、すべてのデータから最も異なる関係を持つ 50 人の個人を選択する必要があります。つまり、クラスター 1 に 100、2 に 200、3 に 400、4 に 200、5 に 100 の場合、最初のクラスターから 5 + 2 番目のクラスターから 10 + 3 番目から 20 + 4 番目から 10 + を選択する必要があります。 5から5。
データ例:
mydata<-matrix(nrow=100,ncol=10,rnorm(1000, mean = 0, sd = 1))
今までやっていたことは、データをクラスター化し、各クラスター内の個人をランク付けし、それを Excel にエクスポートして、そこから先に進むことでした... 私のデータが非常に大きくなったので、それが問題になりました。
R で前のものを適用する方法についての助けや提案をいただければ幸いです。