From p.dalgaard@biostat.ku.dk  Mon Aug  9 17:45:39 1999
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 09 Aug 1999 18:45:39 +0200
Subject: bug ? wilcox() (PR#243)
In-Reply-To: ATurpin@discoveriesinsight.org's message of "Sat, 7 Aug 1999 02:09:31 +0200 (MET DST)"
References: <199908070009.CAA02388@pubhealth.ku.dk>
Message-ID: <x2hfm8kimk.fsf@blueberry.kubism.ku.dk>

ATurpin@discoveriesinsight.org writes:

> > Hi,
> > 
> > I am getting a strange result from the wilcox function in the code below.
> > This code has worked for many other wilcox's, but not this particular one.
> > The p-value printed should be much higher (consistent with the p-value
> > for the t-test).
> > 
> > I am using R Version 0.64.2 under Debian Linux.
> > 
> > I hope it is not me being stupid...

This *was* a bug in older versions of ctest. Your example has a huge
number of cases with x==y and the test was based on 

	STATISTIC <- sum(r[x > 0])

(x being x-y at that stage) 

The current version at CRAN removes the zeros first...

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


bug ? wilcox() (PR#243)
Peter Dalgaard BSA