Learn R Programming

miceafter (version 0.5.0)

prop_wald: 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)

Value

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

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.

Author

Martijn Heymans, 2021

See Also

with.milist, pool_prop_wald

Examples

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

Run the code above in your browser using DataLab