Learn R Programming

MIWilson (version 1.0.0)

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

Description

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

Usage

mi_wald_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

Related Functions

Examples

Run this code
# NOT RUN {
phats = c(0.2, 0.23, 0.25)
mi_wald_phat(phats, 100, 0.99, TRUE)

# }

Run the code above in your browser using DataLab