prop_wald function

Calculates a single proportion and related standard error according to Wald

Calculates a single proportion and related standard error according to Wald

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.

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.

Returns

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

Examples

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

See Also

with.milist, pool_prop_wald

Author(s)

Martijn Heymans, 2021

  • Maintainer: Martijn Heymans
  • License: GPL (>= 2)
  • Last published: 2022-10-02