Learn R Programming

miceafter (version 0.5.0)

pool_prop_nna: Calculates the pooled proportion and confidence intervals using an approximate Beta distribution.

Description

pool_prop_nna Calculates the pooled proportion and confidence intervals using an approximate Beta distribution.

Usage

pool_prop_nna(object, conf.level = 0.95)

Value

The pooled proportion and the 95% Confidence interval.

Arguments

object

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

conf.level

Confidence level of the confidence intervals.

Author

Martijn Heymans, 2021

Details

The parameters for the Beta distribution are calculated using the method of moments (Gelman et al. p. 582).

References

Raghunathan, T. (2016). Missing Data Analysis in Practice. Boca Raton, FL: Chapman and Hall/CRC. (paragr 4.6.2)

Andrew Gelman, John B. Carlin, Hal S. Stern, David B. Dunson, Aki Vehtari, Donald B. Rubin. (2003). Bayesian Data Analysis (2nd ed). Chapman and Hall/CRC.

See Also

with.milist, prop_nna

Examples

Run this code

 imp_dat <- df2milist(lbpmilr, impvar='Impnr')
 ra <- with(imp_dat, expr=prop_nna(Radiation))
 res <- pool_prop_nna(ra)
 res

Run the code above in your browser using DataLab