Matthias Kohl wrote:
Dear R Core,
pairwise.wilcox.test does not handle "paired = TRUE" correctly; e.g.
The line
wilcox.test(xi, xj, ...)$p.value
should read
wilcox.test(xi, xj, paired = paired, ...)$p.value
Yes, fixed now. Thanks.
-pd
--
O__ Peter Dalgaard
Dear R Core,
pairwise.wilcox.test does not handle "paired = TRUE" correctly; e.g.
set.seed(13)
x <- rnorm(20)
g <- c(rep(1, 10), rep(2, 10))
wilcox.test(x ~ g)$p.value # 0.075
pairwise.wilcox.test(x, g)$p.value # 0.075, o.k
wilcox.test(x ~ g, paired = TRUE)$p.value # 0.105
pairwise.wilcox.test(x