Description Usage Arguments Value
twoway table of categorical data
1 | twoway_chi(data, x, group, bin = F, cens, force.two = F, show.na = F)
|
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) |
returns a data.frame. Has standardized column names, ready to stack with output from other grit::twoway* functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.