[R] one-sample binomial test
Rolf Turner
rolf at math.unb.ca
Sat Jul 6 15:34:21 CEST 2002
> Here's how I solved a problem for my stats class. I'm pretty sure I
> understand what's going on, but I wonder if there's a more direct way
> to solve it.
(a) You definitely don't have to --- and SHOULDN'T --- use ``trial
and error''.
(b) You should talk to the instructor of your stats class. That's
what he or she is paid for.
(c) You should also read your textbook.
(d) This is a very standard sort of problem. It is also very easy to
solve with pencil and paper (or at the very least a hand
calculator). You do ***not*** need to use binom.test() (in fact this
is counter productive) nor do you need to use prop.power.test() as
someone else suggested (although this will do it for you).
There is a formula for the required sample size which is surely given
in your textbook --- in ***any*** introductory stats textbook. The
formula is readily amenable to use with ``hand calculations''. Find
the formula and use it.
(e) You were given this exercise to get you to learn some of the
basic ideas about confidence intervals for proportions. Learn them.
Don't try to dodge the issue by pumping numbers through a
computerized ``black box''.
cheers,
Rolf Turner
rolf at math.unb.ca
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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