c_catg: various comparer functions for catg types

View source: R/comparers.R

c_catgR Documentation

various comparer functions for catg types

Description

various comparer functions for catg types

Usage

c_catg(...)

c_pdiff(x, glist, useNA = FALSE, w = NULL, ...)

c_cOR(x, glist, useNA = FALSE, w = NULL, ...)

c_cstd.each(x, glist, useNA = FALSE, w = NULL, ...)

c_cstd(x, glist, useNA = FALSE, w = NULL, expand.levels = TRUE, ...)

Arguments

...

this is to be able to tolerate unnecessary arguments

x

vector

glist

a grouping list

useNA

display info for missing?

w

weight

expand.levels

if only one value is returned for a multilevel categorical variable, should the results be expanded with NA:s to match the typical output length for a function of such a variable?

Functions

  • c_pdiff(): difference in proportions, 2 groups only

  • c_cOR(): odds ratios, 2 groups only

  • c_cstd.each(): standardized differences (2 groups only) for each level

  • c_cstd(): standardized differences (2 groups only) for the variable

References

https://www.lerner.ccf.org/qhs/software/lib/stddiff.pdf

See Also

t_fisher.p and t_chisq.p which work for catg variables as well


renlund/descripteur documentation built on Sept. 24, 2023, 7:07 p.m.