powered by
Calculates the specified Wald CI of a binomial proportion variable, given imputed data sets.
mi_wald(mids_obj, response, ci_level = 0.95, summaries = TRUE)
mids object created by mice package
string name of response variable (must be 0-1 valued)
desired confidence interval level (defaults to 95%)
boolean: should summary helper values be printed (default TRUE)
two-length vector of Wald lower CI and upper CI
# 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