简体   繁体   English

使用kendall相关获取p.value时psych :: corr.test调整不起作用

[英]psych::corr.test adjust not working when kendall correlation is used to get p.value

I found other users using psych package corr.test function and getting corrected and uncorrected p.values, here and here ...They used Pearson and Spearman Rho correlation with "adjust" argument. 我发现其他用户正在使用心理包corr.test函数,并 此处此处获得经过校正和未经校正的p.values。他们使用Pearson和Spearman Rho相关性与“ adjust”参数。

But I am not getting the adjustments when kendall correlation method is used... I think it is not a data issue... the code is the following: 但是使用kendall相关方法时我没有得到调整...我认为这不是数据问题...代码如下:

JustScores.Cor<-psych::corr.test(JustScores,method="kendall",adjust="none")
ap<-data.frame(JustScores.Cor$p)

I get the same values if I omit "adjust="none"" (default = "holm"), or change the adjust to "BH", "bonferroni", "BH", "fdr"... 如果省略“ adjust =” none“”(默认=“ holm”),或将调整值更改为“ BH”,“ bonferroni”,“ BH”,“ fdr”,则得到相同的值...

Whatever what I am getting, it is not the uncorrected value, as it is not the same as the value presented in ggscatter (ggpubr package)and stats' cor.test... 无论我得到什么,它都不是未校正的值,因为它与ggscatter(ggpubr软件包)和stats cor.test中显示的值不同。

cor.test(JustScores[,VarName1],JustScores[,VarName2],exact=TRUE,method="kendall")$p.value

I tried also the corr.p, but it delivers the same... 我也尝试了corr.p,但它提供了相同的...

What am I doing wrong? 我究竟做错了什么? Any idea? 任何想法?

Any help is appreciated. 任何帮助表示赞赏。

I can not reproduce your problem. 我无法重现您的问题。 The raw probabilities are below the diagonal and the adjusted are above the diagonal of the matrix labeled Probability values. 原始概率在标有“概率值”的矩阵的对角线以下,而调整后的值在对角线以上。

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

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