[R] binom.test()

Daniel Mastropietro mastropi at uwalumni.com
Mon Sep 23 05:50:09 CEST 2002


The same happened to me.
So far I found that the approximated breaking point for the p-value is the 
following number (given that x = 100 and n = 200):

0.000136737615520986

That is doing,

binom.test(x=100,n=200,p)

with p less than the above number, gives an incorrect p-value.

(I am using Windows Me)

Daniel

At 11:05 AM 23/9/2002 +1200, Robin Hankin wrote:
>Hello everybody.
>
>Does anyone else find the last test in the following sequence odd?
>Can anyone else reproduce it or is it just me?
>
>
> > binom.test(100,200,0.13)$p.value
>[1] 2.357325e-36
> > binom.test(100,200,0.013)$p.value
>[1] 6.146546e-131
> > binom.test(100,200,0.0013)$p.value
>[1] 1.973702e-230
> > binom.test(100,200,0.00013)$p.value
>[1] 0.9743334
>
>(R 1.5.1, Linux RedHat 7.1)
>
>
>--
>
>Robin Hankin, Lecturer,
>School of Geography and Environmental Science
>Tamaki Campus
>Private Bag 92019 Auckland
>New Zealand
>
>r.hankin at auckland.ac.nz
>tel 0064-9-373-7599 x6820; FAX 0064-9-373-7042

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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