gg_gain: Plot Gain Curve

Description Usage Arguments Value Examples

Description

Return a plot for gains

Usage

1
gg_gain(target, score)

Arguments

target

A numeric binary vector (0, 1)

score

A numeric vector containing scores or probabilities

Value

the plot

Examples

1
2
3
4
5
6
data(predictions)

score <- predictions$score
target <- predictions$target

gg_gain(target, score)

jbkunst/riskr documentation built on May 18, 2019, 7 p.m.