R/pool_prop_wilson.R
pool_prop_wilson.Rd
pool_prop_wilson
Calculates the pooled single proportion and
confidence intervals according to Wald across multiply imputed datasets.
pool_prop_wilson(object, conf.level = 0.95)
An object of class 'mistats' ('Multiply Imputed Statistical Analysis').
Confidence level of the confidence intervals.
The proportion and the 95% Confidence interval according to Wilson.
Anne Lott & Jerome P. Reiter (2020) Wilson Confidence Intervals for Binomial Proportions With Multiple Imputation for Missing Data, The American Statistician, 74:2, 109-115, DOI: 10.1080/00031305.2018.1473796.
library(magrittr)
lbpmilr %>%
df2milist(impvar="Impnr") %>%
with(expr=prop_wald(Radiation ~ 1)) %>%
pool_prop_wilson()
#> Prop CI L Wilson CI U Wilson
#> [1,] 0.46226 0.38363 0.54282
#> attr(,"class")
#> [1] "mipool"
# Same as
imp_dat <- df2milist(lbpmilr, impvar="Impnr")
ra <- with(imp_dat, expr=prop_wald(Radiation ~ 1))
res <- pool_prop_wilson(ra)