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

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.

Value

The pooled proportion and the 95% Confidence interval.

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

Author

Martijn Heymans, 2021

Examples


 imp_dat <- df2milist(lbpmilr, impvar='Impnr')
 ra <- with(imp_dat, expr=prop_nna(Radiation))
 res <- pool_prop_nna(ra)
 res
#>       Prop nna   95%CI L   95%CI U
#> [1,] 0.4623334 0.3836788 0.5422658
#> attr(,"class")
#> [1] "mipool"