Skip to content
Prev 353687 / 398525 Next

help with binom.power

(offline, since this is about statistics, not R)

1. The phrasing of your question ("reject hypothesis with 95%
confidence" instead of "at 5% level") indicates some statistical
confusion, so you may wish to consult a local statistician or SO for
clarification.

2. Note that using qbinom(in the stats package that is usually
automatically available)
[1] 3


i.e. a one sided test with size .025 rejects P <= .1% if the number of
successes out of 1000 is 4 or more -- i.e. if the observed rate in a
sample of 1000 is .4% or more (using the particular binomial
approximation referenced in ?qbinom, which is probably slightly
different than that used in the function/package you asked about).

If that is not enough to clarify, post on SO or consult locally. Do
not reply to me. (and, of course, feel free to completely disregard
this).

Cheers,
Bert
Bert Gunter

"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
   -- Clifford Stoll
On Mon, Aug 17, 2015 at 9:48 AM, Sam Steingold <sds at gnu.org> wrote: