[R] binom.test()
Thomas Lumley
tlumley at u.washington.edu
Mon Sep 23 04:42:53 CEST 2002
On Mon, 23 Sep 2002, 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?
>
Actually the previous explanation is completely bogus (I plead jet lag).
The problem is in handling 2-tailed p-values, which is done by looking for
the value in the opposite tail where the density is <= (1+1e-7) times the
observed density. The problem is that the observed density is 0.
It should be possible just to change <= to <, possibly increasing the
fudge factor from 1e-7 but perhaps not.
-thomas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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