0

我正在使用该软件包PMCMR执行博士后 Kruskal-Nemenyi 测试。当我使用默认设置运行测试时:

posthoc.kruskal.nemenyi.test(x=coastal$HIGH_MORTGAGE, g=coastal$SIZECLASS, method="Tukey")

我得到以下结果和警告:

Pairwise comparisons using Tukey and Kramer (Nemenyi) test  
                   with Tukey-Dist approximation for independent samples

data:  coastal$HIGH_MORTGAGE and coastal$SIZECLASS 

       Large Medium
Medium 0.931 -     
Small  0.746 0.078 

P value adjustment method: none

Warning message:
In posthoc.kruskal.nemenyi.test.default(x = coastal$HIGH_MORTGAGE,  :
  Ties are present, p-values are not corrected.*

当我运行测试将分布更改为 Chisq 以对关系应用校正时,我仍然得到相同的结果并且不使用卡方分布。

posthoc.kruskal.nemenyi.test(x=coastal$HIGH_MORTGAGE, g=coastal$SIZECLASS, method="Chisq")

Pairwise comparisons using Tukey and Kramer (Nemenyi) test  
                   with Tukey-Dist approximation for independent samples

data:  coastal$HIGH_MORTGAGE and coastal$SIZECLASS

       Large Medium
Medium 0.931 -     
Small  0.746 0.078

P value adjustment method: none 

Warning message:
In posthoc.kruskal.nemenyi.test.default(x = coastal$HIGH_MORTGAGE,  :
  Ties are present, p-values are not corrected.

我想知道包中是否有错误,或者是否有任何我不知道的方法来解决这个问题。

4

1 回答 1

1

从 versionPMCMR1.0PMCMR1.1(and > 1.1) 语法略有变化,所以它是dist,不是method,它是:

posthoc.kruskal.nemenyi.test( x, g, dist = c("Tukey", "Chisquare"), ...)

或者

posthoc.kruskal.nemenyi.test(formula, data, subset, na.action, dist =
 c("Tukey", "Chisquare"), ...)

包含示例的小插图已在版本中PMCMR1.3相应更新。

于 2015-11-07T10:42:18.390 回答