pool_prop_wilson: Calculates the pooled single proportion confidence intervals...

View source: R/pool_prop_wilson.R

pool_prop_wilsonR Documentation

Calculates the pooled single proportion confidence intervals according to Wilson across multiply imputed datasets.

Description

pool_prop_wilson Calculates the pooled single proportion and confidence intervals according to Wald across multiply imputed datasets.

Usage

pool_prop_wilson(object, conf.level = 0.95)

Arguments

object

An object of class 'mistats' ('Multiply Imputed Statistical Analysis').

conf.level

Confidence level of the confidence intervals.

Value

The proportion and the 95% Confidence interval according to Wilson.

Author(s)

Martijn Heymans, 2021

References

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.

See Also

with.milist, prop_wald

Examples


library(magrittr)
lbpmilr %>%
  df2milist(impvar="Impnr") %>%
    with(expr=prop_wald(Radiation ~ 1)) %>%
      pool_prop_wilson()

# Same as
imp_dat <- df2milist(lbpmilr, impvar="Impnr")
ra <- with(imp_dat, expr=prop_wald(Radiation ~ 1))
res <- pool_prop_wilson(ra)


miceafter documentation built on Oct. 2, 2022, 5:08 p.m.