[R] binom.test inside ctest

Mai Zhou mai at ms.uky.edu
Tue Sep 12 06:22:47 CEST 2000


I got 

binom.test(65, 100, p=0.5)


p-value = 0.002654

I thought in this case (when p=0.5 so a symmetric distribution)
we should get 

p-value = 2*( 1-pbinom(64, 100, p=0.5) ) = 0.003517642

Can somebody explain why the difference?

Thanks.

Mai Zhou
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list