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
Re previous post: ouch ! never mind, sorry. Derek Eder -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Mon, 2 Oct 2000, Derek N Eder wrote:> R. 1.1.0 > > The example below is self explanatory.So is the error message :)> > ## 1 ## # works fine > > binom.test((50*.64),50,.5,alt='g') > ... Exact binomial test ...50*0.64=32, an integer between 0 and 50> ## 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 n50*0.65=32.5, not an integer between 0 and 50. You can't get 65% successes in 50 Bernoulli trials.> ## 3 ## # works fine > > binom.test((50*.66),50,.5,alt='g') > ... Exact binomial test ...50*0.66=33, an integer between 0 and 50 -thomas Thomas Lumley Assistant Professor, Biostatistics University of Washington, Seattle -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._