ci_prop_agresti_coull | R Documentation |
Calculates the Agresti-Coull
interval (created by Alan Agresti
and Brent Coull
) by
(for 95% CI) adding two successes and two failures to the data and then using the Wald formula to construct a CI.
ci_prop_agresti_coull(x, conf.level = 0.95, data = NULL)
x |
( |
conf.level |
( |
data |
( |
\left( \frac{\tilde{p} + z^2_{\alpha/2}/2}{n + z^2_{\alpha/2}} \pm
z_{\alpha/2} \sqrt{\frac{\tilde{p}(1 - \tilde{p})}{n} +
\frac{z^2_{\alpha/2}}{4n^2}} \right)
An object containing the following components:
n |
Number of responses |
N |
Total number |
estimate |
The point estimate of the proportion |
conf.low |
Lower bound of the confidence interval |
conf.high |
Upper bound of the confidence interval |
conf.level |
The confidence level used |
method |
Type of method used |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.