Learn R Programming

MIWilson (version 1.0.0)

mi_wald: Calculates the specified Wald CI of a binomial proportion variable, given imputed data sets.

Description

Calculates the specified Wald CI of a binomial proportion variable, given imputed data sets.

Usage

mi_wald(mids_obj, response, ci_level = 0.95, summaries = TRUE)

Arguments

mids_obj

mids object created by mice package

response

string name of response variable (must be 0-1 valued)

ci_level

desired confidence interval level (defaults to 95%)

summaries

boolean: should summary helper values be printed (default TRUE)

Value

two-length vector of Wald lower CI and upper CI

Examples

Run this code
# NOT RUN {
imp = mice::mice(mice::nhanes %>% dplyr::mutate(hyp = hyp-1))
mi_wald(imp, "hyp", 0.95)

# }

Run the code above in your browser using DataLab