gg_lift: Plot Lift Chart

Description Usage Arguments Value References Examples

Description

Return a plot with the lift chart

Usage

1
gg_lift(target, score)

Arguments

target

A numeric binary vector (0, 1)

score

A numeric vector containing scores or probabilities

Value

The plot

References

http://www2.cs.uregina.ca/~dbd/cs831/notes/lift_chart/lift_chart.html http://www.saedsayad.com/model_evaluation_c.htm

Examples

1
2
3
4
5
6
data(predictions)

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

gg_lift(target, score)

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