Skip to contents

This function evaluates the maximum absolute difference in model performance metrics across different groups.

Usage

eval_max_abs_diff(data, outcome, group, probs, cutoff = 0.5, digits = 2)

Arguments

data

Data frame containing the outcome, predicted outcome, and group

outcome

Name of the outcome variable, it must be binary

group

Name of the group

probs

Name of the predicted outcome variable

cutoff

Threshold for the predicted outcome, default is 0.5

digits

Number of digits to round the results to, default is 2

Value

A data frame containing the following elements:

  • Metric: The names of the metrics calculated.

  • Values for each group.

  • Max_abs_diff: The maximum absolute difference for the model