prop_wald {miceafter}R Documentation

Calculates a single proportion and related standard error according to Wald

Description

prop_wald Calculates a single proportion and related standard error according to Wald and provides degrees of freedom to be used in function with.miceafter.

Usage

prop_wald(x, formula, data)

Arguments

x

name of variable to calculate proportion.

formula

A formula object to specify the model as normally used by glm.

data

An objects of class milist, created by df2milist, list2milist or mids2milist.

Value

The proportion, standard error and complete data degrees of freedom (dfcom) as n-1.

Author(s)

Martijn Heymans, 2021

See Also

with.milist, pool_prop_wald

Examples

imp_dat <- df2milist(lbpmilr, impvar="Impnr")
ra <- with(imp_dat, expr=prop_wald(Chronic ~ 1))


[Package miceafter version 0.5.0 Index]