View source: R/getDesignProportions.R
ClopperPearsonCI | R Documentation |
Obtains the Clopper-Pearson exact confidence interval for a one-sample proportion.
ClopperPearsonCI(n, y, cilevel = 0.95)
n |
The sample size. |
y |
The number of responses. |
cilevel |
The confidence interval level. |
A data frame with the following variables:
n
: The sample size.
y
: The number of responses.
phat
: The observed proportion of responses.
lower
: The lower limit of the confidence interval.
upper
: The upper limit of the confidence interval.
cilevel
: The confidence interval level.
Kaifeng Lu, kaifenglu@gmail.com
ClopperPearsonCI(20, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.