Re: [R] stratified Wilcoxon available?

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Tue 30 Aug 2005 - 01:03:08 EST

Torsten Hothorn <Torsten.Hothorn@rzmail.uni-erlangen.de> writes:

> > Dear All,
> >
> > is there a stratified version of the Wilcoxon test (also known as van
> > Elteren test) available in R?
>
> you can plug it together using the `coin' infrastructure (see the
> examples in the manual and vignette).

I managed to dig out our old code, and patched it up loosely to fit versions of R later than 0.62 (the trend test code still seems broken). Use at own risk. The usage is fairly straightforward:

> SKruskal.test(y~g1|g2)

        Kruskal-Wallis stratified rank sum test

data: y , group: g1 , strata: g2
K = 3.1486, df = 3, p-value = 0.3693

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907


______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Received on Tue Aug 30 01:08:54 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:57 EST