cat_counter: Counts and percentages across grouping variables.
Description
Counts and percentages across grouping variables.
Usage
cat_counter(data, x, y = NULL, ...)
Arguments
data
for use with formula, a data frame containing all the
data
x
The variable to use as the rows in the contingency table.
y
The variable to use as the columns in the contingency
table. Default is NULL. If NULL, one-sample proportion test (a goodness
of fit test) will be run for the x variable. Otherwise an appropriate
association test will be run. This argument can not be NULL for
ggbarstats function.