R中具有显著性的多色相关矩阵

R中具有显著性的多色相关矩阵,r,correlation,significance,R,Correlation,Significance,我一直在拼命寻找一种方法来计算一个在R中具有显著性的多色相关矩阵。如果这非常困难,那么两个具有显著性的变量之间的多色相关就足够了 到目前为止,我所尝试的: library(polychor) poly <- polychor(var1,var2) poly <- polychor(DatM) #where DatM is a DF converted to matrix library(polycor) hetcor(Dat2) #I am however uncertain he

我一直在拼命寻找一种方法来计算一个在R中具有显著性的多色相关矩阵。如果这非常困难,那么两个具有显著性的变量之间的多色相关就足够了

到目前为止,我所尝试的:

library(polychor)
poly <- polychor(var1,var2)
poly <- polychor(DatM) #where DatM is a DF converted to matrix

library(polycor)
hetcor(Dat2) #I am however uncertain hetcor is something I would want if I am looking for polychoric correlation.

library(psych)
polychoric(Dat$for2a,smooth=TRUE,global=TRUE,polycor=FALSE, ML = FALSE, std.err=TRUE)
库(polychor)

poly很抱歉回复晚了

可能是您想要的,您可以指定
poly=TRUE
。Bill最近还修改了
cor.plot
,以便根据相关重要性调整文本大小,但您可能必须从我们的服务器安装最新的psych软件包:

install.packages('psych', type = 'source', repos = 'http://personality-project.org/r/')
下面是一个简单的例子:

library(psych)
poly.example <- cor.ci(sim.poly(nvar = 10,n = 100)$items,n.iter = 10,poly = TRUE)
poly.example
print(corr.test(poly.example$rho), short=FALSE)  
图书馆(心理学)

谢谢你的回答。我不再做这个项目了,但下次我需要多色相关矩阵时,我一定会尝试一下。你是说corr.p(ply.examples$rho)?因为rho已经是一个相关矩阵了。