onearm | R Documentation |
Determines the critical value and power for an exact one sample binomial test
onearm(n, p0, pa, alpha = 0.1)
n |
sample size |
p0 |
The null response probability |
pa |
The alternative response probability |
alpha |
The one-sided type I error rate |
Let R
be the number of responses. If p0<pa
, determines the
smallest critical value r
such that P(R>=r|p0)<=alpha
, and
computes P(R>=r|p)
for p=p0,pa
. If p0>pa
, similar
calculations are done for rejecting in the opposite tail.
A vector giving the critical value and the rejection probabilities under the null and alternative.
bin1samp
onearm(30, 0.1, 0.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.