Learn R Programming

glossa (version 1.2.1)

evaluation_metrics: Evaluation metrics for model predictions

Description

Computes a set of performance metrics (e.g., AUC, TSS, CBI) based on observed and predicted values.

Usage

evaluation_metrics(df, na.rm = TRUE, method = "spearman")

Value

A named list or data.frame with evaluation metrics.

Arguments

df

A data.frame with columns: `observed` (0/1), `predicted` (0/1), `probability` (numeric).

na.rm

Logical. Whether to remove rows with NA values.

method

Correlation method for CBI ("spearman", "pearson", or "kendall").