> -----Original Message-----
> From: r-help-boun...@r-project.org 
> [mailto:r-help-boun...@r-project.org] On Behalf Of C.H.
> Sent: Saturday, March 21, 2009 7:07 PM
> To: r-help@r-project.org
> Subject: Re: [R] Fisher test problem
> 
> I tried the OpenEpi, the p-value of 1.25 is due to the fact that the
> one tailed p-value is 0.62. The two tailed p-value then is 0.62 * 2 =
> 1.25. OpenEpi is not clever enough to ceiling the p-value to 1.
> 
> CH
> 

But that just shows that OpenEpi is incorrect, because the "two-tailed" 
probability is not 2 times a "one-tailed" probability (there are two of them 
and they are not symmetrical).  To calculate a "two-tailed" test, one needs to 
calculate the probability for each table that is as extreme or more extreme 
than the observed table and take the sum (including the probabiility of the 
observed table).  

Hope this is helpful,

Dan

Daniel Nordlund
Bothell, WA USA  

______________________________________________
R-help@r-project.org 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.

Reply via email to