twoway_chi: twoway table of categorical data

Description Usage Arguments Value

View source: R/twoway_chi.R

Description

twoway table of categorical data

Usage

1
twoway_chi(data, x, group, bin = F, cens, force.two = F, show.na = F)

Arguments

data

dataset containing group factor and the x-variable to be summed up

x

variable to be summed

bin

logical indicator to only use last row of two-way table (FALSE is default)

cens

positive integer deciding the lower threshold for when to clear cells in order to hide very detailed patient-level data

force.two

logical to use for counts where values >1 should be considered 1 (then effectively testing and showing a binary variable).

show.na

logical to use missing data as an explicit category (default FALSE)

Value

returns a data.frame. Has standardized column names, ready to stack with output from other grit::twoway* functions.


socioskop/ttools documentation built on Jan. 29, 2022, 3:08 a.m.