pool_propdiff_wald Calculates the pooled difference between proportions and standard error according to Wald across multiply imputed datasets.

pool_propdiff_wald(object, conf.level = 0.95, dfcom = NULL)

Arguments

object

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

conf.level

Confidence level of the confidence intervals.

dfcom

Complete data degrees of freedom. Default number is taken from function propdiff_wald

Value

The proportion, the Confidence intervals, the standard error and statistic.

Author

Martijn Heymans, 2021

Examples


imp_dat <- df2milist(lbpmilr, impvar="Impnr")
ra <- with(imp_dat, expr=propdiff_wald(Chronic ~ Gender))
res <- pool_propdiff_wald(ra)
res
#>      Prop diff Wald      SE       t 95 CI low 95 CI high
#> [1,]        -0.1389 0.09318 1.95996  -0.32153    0.04373
#> attr(,"class")
#> [1] "mipool"