Re: bug ? wilcox() (PR#243)

About this list Date view Thread view Subject view Author view Other groups

Subject: Re: bug ? wilcox() (PR#243)
From: Peter Dalgaard BSA (p.dalgaard@biostat.ku.dk)
Date: Tue 10 Aug 1999 - 02:45:39 EST


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


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:07 EST