ci_prop_wald | R Documentation |
Calculates the Wald interval by following the usual textbook definition for a single proportion confidence interval using the normal approximation.
ci_prop_wald(x, conf.level = 0.95, correct = FALSE, data = NULL)
x |
( |
conf.level |
( |
correct |
( |
data |
( |
\hat{p} \pm z_{\alpha/2} \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}
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 |
# example code
x <- c(
TRUE, TRUE, TRUE, TRUE, TRUE,
FALSE, FALSE, FALSE, FALSE, FALSE
)
ci_prop_wald(x, conf.level = 0.9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.