Skip to content
Prev 76282 / 398502 Next

stratified Wilcoxon available?

Heinz Tuechler <tuechler at gmx.at> writes:
Not easily, I think. I played with the stratified Kruskal Wallis test
(which is the same thing for larger values of 2...) with a grad
student some years ago, but we never got it integrated as an "official"
R function. 

It was not massively hard to code, as I recall it. Basically, you
convert observations to within-stratum ranks, scaled so that the
scores have similar variance (this is crucial: just adding the
per-stratum rank sums won't work). You can then get the relevant SSD
from lm(), by comparing the models "r ~ group + strata" and "r ~
strata". This SSD can be looked up as a chi-square statistic, possibly
after applying a scale factor which I have forgotten.... (I.e. do your
own math, don't trust me!)