mi_wilson: Calculates the specified Wilson CI of a binomial proportion...

Description Usage Arguments Value Examples

View source: R/Wilson.R

Description

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

Usage

1
mi_wilson(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 Wilson lower CI and upper CI

Examples

1
2
imp = mice::mice(mice::nhanes %>% dplyr::mutate(hyp = hyp-1))
mi_wilson(imp, "hyp", 0.95)

MIWilson documentation built on Aug. 24, 2021, 1:06 a.m.