Skip to contents

Examine Generalized Entropy Index of a model #' This function evaluates the generalized entropy index in model performance metrics across different groups.

Usage

eval_generalized_entropy_index(
  data,
  outcome,
  group,
  probs,
  alpha = 2,
  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.

  • Generalized_entropy_index: The generalized entropy index for the model