R语言警告:Cannot compute exact p-value with ties的处理方法

时间:2025-02-22 15:31:58

R语言警告:Cannot compute exact p-value with ties的处理方法



一、问题
[1] "检验Spearman相关性的显著性为:"
Warning in (death$Female_Exp, death$Male_Exp, alternative = "",  :
  Cannot compute exact p-value with ties


二、解决办法

在R中对Spearman的相关性执行相关性测试时,如何避免出现“无法计算具有联系的精确p值”的警告?