powered by
Describe categorical variables by N, number of unique values, and mode. Note that in case of multiple modes, the first mode by order of values is chosen.
describe_cat(data, ...)
a tdcmm model
a tibble or a tdcmm model
Variables to describe (column names). Leave empty to describe all categorical variables in data.
If no variables are specified, all categorical (character or factor) variables are described.
N: number of valid cases (i.e., all but missing)
Missing: number of NA cases
Unique: number of unique categories in a given variable, without Missing
Mode: mode average (if multiple modes exist, first mode by order of values is returned)
Mode_N: number of cases reflecting the Mode
Other descriptives: describe(), tab_percentiles()
describe()
tab_percentiles()
WoJ %>% describe_cat(reach, employment, temp_contract) fbposts %>% describe_cat(type)
Run the code above in your browser using DataLab