[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-help
Subject:    Re: [R] significant test
From:       Peter Dalgaard <p.dalgaard () biostat ! ku ! dk>
Date:       2005-10-31 17:25:08
Message-ID: x2ll09lhu3.fsf () viggo ! kubism ! ku ! dk
[Download RAW message or body]

Prof Brian Ripley <ripley@stats.ox.ac.uk> writes:

> Sorry, no.  The Wilcoxon test does NOT test a difference in means: its
> null hypothesis is that the two samples came from the same continuous
> distribution, a much narrower assumption.  (It is sensitive to
> differences in variances, for example, and is probably closer to
> testing a difference in medians than means where the shapes of the two
> samples differ)

Actually, it is quite easy to come up with examples where the median
is identical but Wilcoxon still comes out significant, most often if
the distribution has more than 50% zeros in both groups -- think
"functional impairment" or "alcohol consumption on a weekday". 
The distribution is not continuous in those cases, but wilcox.test
deals with the resulting ties. The test statistic is directly related
to the sign of the difference between a random observation from each
group, i.e. P(X > Y) / P(X != Y) which can be assumed to be 0.5 under
the null.


-- 
   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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic