score_cramer: Compute Cramer's V between categorical observations and...

View source: R/score_cramer.R

score_cramerR Documentation

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, ...)

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).

Value

numeric: Cramer's V

See Also

Other modelling_tools: case_weights(), model_formula(), score_auc(), score_r2()

Examples

score_cramer(
 o = c("a", "a", "b", "c", "c"),
 p = c("a", "b", "b", "c", "c")
 )


collinear documentation built on Dec. 8, 2025, 5:06 p.m.