Skip to contents

This function evaluates the maximum and minimum differences in model performance metrics across different groups.

Usage

eval_max_min_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, which must be binary.

group

Name of the group variable.

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-Min: The maximum minus minimum metric difference for the model.