kruskal wallis - Pairwise Test for Multiple comparisons (Nemenyi Test) in R -


i using package pmcmr perform postdoc kruskal-nemenyi test. when run test default settings:

posthoc.kruskal.nemenyi.test(x=coastal$high_mortgage, g=coastal$sizeclass, method="tukey") 

i following results , warning:

pairwise comparisons using tukey , kramer (nemenyi) test                      tukey-dist approximation independent samples  data:  coastal$high_mortgage , 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 present, p-values not corrected.* 

when run test changing distribution chisq apply correction ties, still same results , chi-square distribution not used.

posthoc.kruskal.nemenyi.test(x=coastal$high_mortgage, g=coastal$sizeclass, method="chisq")  pairwise comparisons using tukey , kramer (nemenyi) test                      tukey-dist approximation independent samples  data:  coastal$high_mortgage , 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 present, p-values not corrected. 

i know if there bug in package or if there methos not aware of solve this.

from version pmcmr1.0 pmcmr1.1 (and > 1.1) syntax has changed, dist, not method, is:

posthoc.kruskal.nemenyi.test( x, g, dist = c("tukey", "chisquare"), ...) 

or

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

the vignette has included example has been updated in version pmcmr1.3 accordingly.


Comments