Computes a set of performance metrics (e.g., AUC, TSS, CBI) based on observed and predicted values.
evaluation_metrics(df, na.rm = TRUE, method = "spearman")
A named list or data.frame with evaluation metrics.
A data.frame with columns: `observed` (0/1), `predicted` (0/1), `probability` (numeric).
Logical. Whether to remove rows with NA values.
Correlation method for CBI ("spearman", "pearson", or "kendall").