model_gain: Gain curve

View source: R/gain.R

model_gainR Documentation

Gain curve

Description

model_gain() returns the gain curve, which is constructed from the percentage of the tested population and the cumulative proportion of successes. The graph allows evaluating the percentage of gain in the prediction of success in relation to the percentage of the tested population.

Usage

model_gain(y_test, y_test_prob)

Arguments

y_test

Values of the response variable in test set.

y_test_prob

Probabilities of the response variable in test set.


Dfranzani/MTRGLM documentation built on March 28, 2024, 1:34 a.m.