[R] bug in the ctest package: binom.test

Mai Zhou mai at ms.uky.edu
Thu Jan 28 20:45:16 CET 1999


R 0630 for windows

> library(ctest)
> binom.test(7,10,p=0.3, alternative="two.sided")

returns a p-value of =< 2.2e-016 and a warning

In Splus 3.4 

> binom.test(7,10,p=0.3, alternative="two.sided")

returns a p-value of 0.0106


I think it is the 

max(v[v<=(1+eps)*PVAL])       causing the problem...

max() of an empty vector.......


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