score_cramer: Compute Cramer's V between categorical observations and predictions
Description
Internal function to compute the Cramer's V of categorical observations versus categorical model predictions. Please read the help file of cor_cramer() for further details.
Usage
score_cramer(o = NULL, p = NULL, ...)
Value
numeric: Cramer's V
Arguments
o
(required; character vector) categorical observations. Default: NULL
p
(required; character vector) categorical predictions. Default: NULL
...
(optional) Internal args (e.g. function_name for
validate_arg_function_name, a precomputed correlation matrix
m, or cross-validation args for preference_order).
See Also
Other modelling_tools:
case_weights(),
model_formula(),
score_auc(),
score_r2()