简体   繁体   English

聚类分析

[英]Clustering Analysis

I want to perform clustering analysis on my data set. 我想对我的数据集执行聚类分析。

I have a data set with 11 observations and 245 variables for each observation. 我有一个包含11个观察值和245个变量的数据集。

All the packages I found in R are clustering observations not variables. 我在R中找到的所有包都是聚类观察结果,而不是变量。 I want to perform clustering analysis on variables. 我想对变量执行聚类分析。

How to perform clustering with variables. 如何使用变量执行聚类。

Try the iclust() function within the psych package as well as hclustvar() within the ClustOfVar package. 尝试iclust()的内函数psych包以及hclustvar()的内ClustOfVar包。 These perform clustering of variables as opposed to clustering of observations. 它们执行变量的聚类,而不是观察的聚类。

Transpose your data. 转置数据。

Then your variables are observations, and observations become variables. 然后,您的变量就是观察值,观察值变成变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM