[R-sig-eco] Two-sided significant test for null models

Rob Robinson rob.robinson at bto.org
Tue Jul 23 12:59:59 CEST 2013


also consider
?p.adjust

cheers
rob

****** The new Bird Atlas is coming: http://www.bto.org/shop/bird-atlas  *******

Dr Rob Robinson, Principal Ecologist
British Trust for Ornithology, The Nunnery, Thetford, Norfolk, IP24 2PU
Ph: +44 (0)1842 750050     E: rob.robinson at bto.org
Fx: +44 (0)1842 750030     W: www.bto.org/about-bto/our-staff/rob-robinson

====== "How can anyone be enlightened, when truth is so poorly lit" =======



On 23 July 2013 11:53, Cayetano Gutiérrez Cánovas <cayeguti at um.es> wrote:
> Thanks Bob / Dylan:
>
> Bob:
> I am concerned with the possibility of increase the risk of false
> positives because two tests are actually performing.
>
> What do you think of multiplying p-value by 2 (the number of tests) to
> control risk?
>
> set.seed(10)
> rnorm(999)->null.dist
> obs<-2.5
> alpha<-0.05
> pval=mean(obs>null.dist)
> min(pval, 1-pval)*2
>
> Dylan:
> If tried with this, but it seems that wilcox.test need two variables of
> the same length
>
> wilcox.test(obs, null.dist,alternative=c("two.sided"),paired=T,conf.int=T)
> Error en wilcox.test.default(obs, null.dist, alternative =
> c("two.sided"),  :
>    'x' and 'y' must have the same length
>
> Best wishes
> Tano
> --
> *Cayetano Gutiérrez Cánovas*
> Aquatic Ecology Group <http://www.um.es/ecoaqua>
> Universidad de Murcia (Spain)
>
> website <http://www.um.es/ecoaqua/personal/Gutierrez-Canovas_en.html>
> Scholar Google Citations
> <http://scholar.google.com/citations?user=Yowrt8gAAAAJ>
> Lessons from nature <http://lessonsfromnature.org/es/>
> skype: tano.gc
> twitter: @LdN_Esp <https://twitter.com/LdN_Esp>
>
>         [[alternative HTML version deleted]]
>
>
> _______________________________________________
> R-sig-ecology mailing list
> R-sig-ecology at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>



More information about the R-sig-ecology mailing list