powered by
Obtains the Clopper-Pearson exact confidence interval for a one-sample proportion.
ClopperPearsonCI(n, y, cilevel = 0.95)
A data frame with the following variables:
n: The sample size.
n
y: The number of responses.
y
phat: The observed proportion of responses.
phat
lower: The lower limit of the confidence interval.
lower
upper: The upper limit of the confidence interval.
upper
cilevel: The confidence interval level.
cilevel
The sample size.
The number of responses.
The confidence interval level.
Kaifeng Lu, kaifenglu@gmail.com
Clopper, C. J., & Pearson, E. S. (1934). The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika, 26(4), 404-413.
ClopperPearsonCI(20, 3)
Run the code above in your browser using DataLab