Re: [R] Wilcoxon Rank-Sum Test with Bonferroni's correction

From: Spencer Graves <spencer.graves_at_pdf.com>
Date: Wed 20 Sep 2006 - 07:21:24 GMT

      Consider the following:

l0 <- list(1:3, 4:5)
l1 <- list(6:8, 9:11, 12:16)
WT <- mapply(function(x,y)wilcox.test(x,y)$p.value, l0, l1)

      The simplest Bonferroni for this case would be as follows: 

length(WT)*WT

      Greater numerical precision could be obtained as follows:

1-(1-WT)^length(WT)

      If you aren't satisfied with either of these, I suggest two things: First have you tried help('Bonferroni')? This produced 124 hits for me just now. Second, please expand your example slightly to make it self contained (as I tried to do above) and PLEASE do read the posting guide "www.R-project.org/posting-guide.html".

      Hope this helps. 
      Spencer Graves

Raj, Towfique wrote:
> Dear all,
>
> I am trying to run Wilcoxon Rank-Sum Test with Bonferroni's
> correction. I have two lists: l0, l1:
>
> mapply(function(x,y)wilcox.test(x,y)$p.value, l0, l1)
>
> How do I run Bonferroni's correction on mapply? Any help is much apperciated.
> Thanks,
>
> -Raj
>
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.
>



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 and provide commented, minimal, self-contained, reproducible code. Received on Wed Sep 20 17:25:48 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 20 Sep 2006 - 07:30:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.