Skip to content
Prev 76381 / 398502 Next

stratified Wilcoxon available?

Torsten Hothorn <Torsten.Hothorn at rzmail.uni-erlangen.de> writes:
Nice to see that the old code made sense. A bit surprising that it
gives _exactly_ the same result as the blockwise ranking in coin...
Perhaps introduce some ties? (round(y,1) is usually effective).

The trend test is easily fixed: just spell "t value" without capital V
as we do nowadays. This gives
Kruskal-Wallis stratified rank sum trend test

data:  y , group:  x , strata:  b , trend:  as.numeric(group)
Z = -0.1624, df = 1, p-value = 0.871
Kruskal-Wallis stratified rank sum trend test

data:  y , group:  x , strata:  b , trend:  1 2 3
Z = -0.1624, df = 1, p-value = 0.871

(The df=1 is a bit misleading in this case...)