简体   繁体   English

有人可以解释R中pvclust函数的输出吗?

[英]Can someone explain the output from the pvclust function in R?

In the pvclust package in R, there is the pvclust() function. 在R中的pvclust包中,有pvclust()函数。 In the example provided in the function help file, there's the function: 在函数帮助文件中提供的示例中,有以下函数:

boston.pp <- pvpick(boston.pv)

This is supposed to print out the clusters with high p-values. 这应该打印出具有高p值的聚类。 The output of this function is: 该函数的输出是:

$clusters
$clusters[[1]]
[1] "rm"   "medv"

$clusters[[2]]
[1] "zn"  "dis"

$clusters[[3]]
[1] "crim"    "indus"   "nox"     "age"     "rad"     "tax"     "ptratio" "lstat"  


$edges
[1] 3 5 9

I have a lot of trouble understanding what the output means, especially since I have very limited technical background on cluster analysis. 我很难理解输出的含义,特别是因为我对聚类分析的技术背景非常有限。 In particular, I don't understand the meaning of the vector of names under each cluster. 特别是,我不理解每个集群下名称向量的含义。 Can someone explain this for me? 有人可以帮我解释一下吗? Thanks! 谢谢!

https://cran.r-project.org/web/packages/pvclust/pvclust.pdf describes pvclust: https://cran.r-project.org/web/packages/pvclust/pvclust.pdf描述了pvclust:

For data expressed as (nxp) matrix or data frame, we assume that the data is n observations of p objects, which are to be clustered. 对于表示为(nxp)矩阵或数据帧的数据,我们假设数据是p个对象的n个观察值,这些对象将被聚类。 The i'th row vector corresponds to the i'th observation of these objects and the j'th column vector corresponds to a sample of j'th object with size n 第i行向量对应于对这些对象的第i次观察,第j列向量对应于大小为n的第j个对象的样本

Output of pvpick: 输出pvpick:

cluster - a list of character string vectors. cluster - 字符串向量列表。 Each vector corresponds to the names of objects in each cluster. 每个向量对应于每个群集中对象的名称。

Have you plotted dendrogram of pvclust output? 你有没有绘制pvclust输出的树形图? pvpick clusters output just lists internal points (pvclust treats each column in boston dataset as a point) in some cluster which you will see in dendrogram if you plot it. pvpick clusters输出只列出内部点(pvclust将波士顿数据集中的每一视为一个点)在某些群集中,如果绘制它,您将在树形图中看到它。 在此输入图像描述

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

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