Learn R Programming

miceafter (version 0.5.0)

prop_nna: Calculates the posterior beta components for a single proportion

Description

prop_nna Calculates the posterior beta components for a single proportion (assuming noninformative prior).

Usage

prop_nna(x, data)

Value

The posterior beta components.

Arguments

x

name of variable to calculate proportion.

data

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

Author

Martijn Heymans, 2021

References

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

See Also

with.milist, pool_prop_nna

Examples

Run this code
 imp_dat <- df2milist(lbpmilr, impvar='Impnr')
 ra <- with(imp_dat, expr=prop_nna(Radiation))

Run the code above in your browser using DataLab