pool_prop_nna {miceafter} | R Documentation |
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)
Arguments
object |
An object of class 'mistats' ('Multiply Imputed Statistical Analysis'). |
conf.level |
Confidence level of the confidence intervals. |
Details
The parameters for the Beta distribution are calculated using the method of moments (Gelman et al. p. 582).
Value
The pooled proportion and the 95% Confidence interval.
Author(s)
Martijn Heymans, 2021
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
Examples
imp_dat <- df2milist(lbpmilr, impvar='Impnr')
ra <- with(imp_dat, expr=prop_nna(Radiation))
res <- pool_prop_nna(ra)
res
[Package miceafter version 0.5.0 Index]