2
我一直在急切地寻找一种计算多方相关矩阵的方法,在R中具有显着性。如果这非常困难,那么具有显着性的两个变量之间的多方相关就足够了。具有显着性的多方相关矩阵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)
这些都不放弃的意义。我已经读过Permutation测试[可以给我意义] [1],用于每个相关对的corr = 0假设。软件包和lmPerm允许用户计算排列测试。但是,我不确定如何。
在此先感谢, 海尔吉
谢谢您的回答。我不再在这个项目上工作,但下次我需要多边形相关矩阵时,我一定会尝试一下。 –
您的意思是corr.p(ply.examples $ rho)吗?因为rho已经是一个相关矩阵。 –