[R] binom.test bug?

Derek N Eder derek.eder at neuro.gu.se
Mon Oct 2 17:18:53 CEST 2000


R. 1.1.0

The example below is self explanatory.


##  1  ##                                                      # works fine
 > binom.test((50*.64),50,.5,alt='g')
...     Exact binomial test  ...

##  2  ##                               #  WHAT  ! ?
 > binom.test((50*.65),50,.5,alt='g')

Error in binom.test((50 * 0.65), 50, 0.5, alt = "g") :
         x must be an integer between 0 and n

##  3  ##                               # works fine
 > binom.test((50*.66),50,.5,alt='g')
...      Exact binomial test  ...


Thanks!





Derek N. Eder
Göteborg University
Institute of Clinical Neuroscience,
Section of Psychiatry
Blå Straket 17
SU/Sahlgrenska University Hospital
S 413 45 Göteborg, Sweden

tlf: +46 (31) 342 6139
fax: +46 (31) 341 1533
derek.eder at neuro.gu.se

(privat)
Landerigatan 2
S 416 70
Göteborg, Sweden
tlf +46 (31) 25 40 66
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20001002/455cd046/attachment.html


More information about the R-help mailing list