Skip Menu |

This queue is for tickets about the Statistics-Test-WilcoxonRankSum CPAN distribution.

Report information
The Basics
Id: 65797
Status: resolved
Worked: 5 hours (300 min)
Priority: 0/
Queue: Statistics-Test-WilcoxonRankSum

People
Owner: INGRIF [...] cpan.org
Requestors: rchen1 [...] stanford.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: A bug in Statistics::Test::WilcoxonRankSum;
Date: Wed, 16 Feb 2011 16:39:08 -0800 (PST)
To: <bug-statistics-test-wilcoxonranksum [...] rt.cpan.org>
From: "Rong Chen" <rchen1 [...] stanford.edu>
Dear Sir, I am using Statistics::Test::WilcoxonRankSum and find that if I change all values to 1-old values, and your test will change form significant to non-significant. The script is attached. Would you advise? Thank you. Rong ############################################ Rong Chen, Ph.D. Bioinformatics Scientist Division of Systems Medicine Dept. of Pediatrics MSOB X155 251 Campus Drive Stanford University Stanford, CA 94305 Tel: 858-837-2265 Fax: 650-724-2259 http://buttelab.stanford.edu/doku.php?id=people:rong ############################################# bmir-cluster /home/rchen1/project/test 131 : perl test.pl dataset1: 0.465 0.453 0.486 dataset2: 0.891 0.888 0.838 0.783 0.553 0.766 0.5 0.493 ---------------------------------------------------------------- dataset | n | rank sum: observed / expected ---------------------------------------------------------------- 1 | 3 | 6 / 16 ---------------------------------------------------------------- 2 | 8 | 60 / 44 ---------------------------------------------------------------- N (size of both datasets): 11 Probability: 0.012121, exact Significant (at 0.05 level) Ranks of dataset 1 are lower than expected all values are subtrcated by 1 dataset1: 0.535 0.547 0.514 dataset2: 0.109 0.112 0.162 0.217 0.447 0.234 0.5 0.507 ---------------------------------------------------------------- dataset | n | rank sum: observed / expected ---------------------------------------------------------------- 1 | 3 | 30 / 16 ---------------------------------------------------------------- 2 | 8 | 36 / 44 ---------------------------------------------------------------- N (size of both datasets): 11 Probability: 2.000000, exact Not significant (at 0.05 level)

Message body is not shown because sender requested not to inline it.

On Wed Feb 16 19:39:19 2011, rchen1@stanford.edu wrote: Show quoted text
> Dear Sir, > > > > I am using Statistics::Test::WilcoxonRankSum and find that if I change all > values to 1-old values, and your test will change form significant to > non-significant. > > The script is attached. > > > > Would you advise? > >
Thank you for the report. I'll check, but I don't have time right now, it may take a while, sorry for that. Best, Ingrid
Subject: RE: [rt.cpan.org #65797] A bug in Statistics::Test::WilcoxonRankSum;
Date: Wed, 16 Feb 2011 23:55:08 -0800 (PST)
To: <bug-Statistics-Test-WilcoxonRankSum [...] rt.cpan.org>
From: "Rong Chen" <rchen1 [...] stanford.edu>
Hi Infrid, Thank you for taking a look at this. For any list of data, if you re-calculate WilcoxonRankSum for 1-data, you will get very different result. The 2nd time is incorrect. Rong Show quoted text
-----Original Message----- From: Ingrid Falk via RT [mailto:bug-Statistics-Test-WilcoxonRankSum@rt.cpan.org] Sent: Wednesday, February 16, 2011 11:46 PM To: rchen1@stanford.edu Subject: [rt.cpan.org #65797] A bug in Statistics::Test::WilcoxonRankSum; <URL: https://rt.cpan.org/Ticket/Display.html?id=65797 > On Wed Feb 16 19:39:19 2011, rchen1@stanford.edu wrote:
> Dear Sir, > > > > I am using Statistics::Test::WilcoxonRankSum and find that if I change all > values to 1-old values, and your test will change form significant to > non-significant. > > The script is attached. > > > > Would you advise? > >
Thank you for the report. I'll check, but I don't have time right now, it may take a while, sorry for that. Best, Ingrid
Uploaded new version (0.7) with bug fix on Pause.