ci_prop_wilson {cicalc} | R Documentation |
Wilson CI
Description
Calculates the Wilson interval by calling stats::prop.test()
.
Also referred to as Wilson score interval.
Usage
ci_prop_wilson(x, conf.level = 0.95, correct = FALSE, data = NULL)
Arguments
x |
( |
conf.level |
( |
correct |
( |
data |
( |
Details
\frac{\hat{p} +
\frac{z^2_{\alpha/2}}{2n} \pm z_{\alpha/2} \sqrt{\frac{\hat{p}(1 - \hat{p})}{n} +
\frac{z^2_{\alpha/2}}{4n^2}}}{1 + \frac{z^2_{\alpha/2}}{n}}
Value
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 |