View source: R/ard_categorical_ci.survey.design.R
ard_categorical_ci.survey.design | R Documentation |
Confidence intervals for categorical variables calculated via
survey::svyciprop()
.
## S3 method for class 'survey.design'
ard_categorical_ci(
data,
variables,
by = NULL,
method = c("logit", "likelihood", "asin", "beta", "mean", "xlogit"),
conf.level = 0.95,
value = list(where(is_binary) ~ 1L, where(is.logical) ~ TRUE),
df = survey::degf(data),
...
)
data |
( |
variables |
( |
by |
( |
method |
( |
conf.level |
( |
value |
( |
df |
( |
... |
arguments passed to |
ARD data frame
data(api, package = "survey")
dclus1 <- survey::svydesign(id = ~dnum, weights = ~pw, data = apiclus1, fpc = ~fpc)
ard_categorical_ci(dclus1, variables = sch.wide)
ard_categorical_ci(dclus1, variables = sch.wide, value = sch.wide ~ "Yes", method = "xlogit")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.