mi_wilson_phat: Calculates the MI-Wilson interval if given a vector of...

Description Usage Arguments Value Examples

View source: R/Wilson.R

Description

Calculates the MI-Wilson interval if given a vector of observed binomial proportions (one for each imputed data frame)

Usage

1
mi_wilson_phat(phats, n, ci_level = 0.95, summaries = TRUE)

Arguments

phats

vector of binomial proportions (one for each imputation)

n

the common number of observations over the imputed dataframes

ci_level

desired confidence interval level (default 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
phats = c(0.2, 0.23, 0.25)
mi_wilson_phat(phats, 100, 0.99, TRUE)

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