View source: R/ard_categorical_ci.R
ard_categorical_ci | R Documentation |
Calculate confidence intervals for proportions.
ard_categorical_ci(data, ...)
## S3 method for class 'data.frame'
ard_categorical_ci(
data,
variables,
by = dplyr::group_vars(data),
method = c("waldcc", "wald", "clopper-pearson", "wilson", "wilsoncc", "strat_wilson",
"strat_wilsoncc", "agresti-coull", "jeffreys"),
conf.level = 0.95,
value = list(where(is_binary) ~ 1L, where(is.logical) ~ TRUE),
strata = NULL,
weights = NULL,
max.iterations = 10,
...
)
data |
( |
... |
Arguments passed to methods. |
variables |
( |
by |
( |
method |
( |
conf.level |
( |
value |
( |
strata , weights , max.iterations |
arguments passed to |
an ARD data frame
# compute CI for binary variables
ard_categorical_ci(mtcars, variables = c(vs, am), method = "wilson")
# compute CIs for each level of a categorical variable
ard_categorical_ci(mtcars, variables = cyl, method = "jeffreys")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.