plotLift: Plots lifts from getLift function

Description Usage Arguments Author(s) Examples

View source: R/plotLift.R

Description

Plots lifts from getLift function

Usage

1
2
3
4
5
6
7
8
plotLift(
  lifts = list(),
  ...,
  cuts = c(5, 15),
  value = "response_rate",
  independient = "percentil",
  level_line = T
)

Arguments

lifts

named list with lifts from getLift

...

lifts from getLift

cuts

points to show exact value of lifts

value

column to be ploted, cum_lift, lift, cum_response, response

independient

independient value of the plot, can be 'percentil' or 'mean_score'

level_line

should shouw the average responce rate? TRUE or FALSE

Author(s)

Daniel Fischer

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
score1 = runif(1000)
response1 = (score1 + rnorm(1000,0,0.1)) > 0.5
lift1 = getLift(score1,response1)
score2 = runif(1000)
response2 = (score2 + rnorm(1000,0,0.3)) > 0.5
lift2 = getLift(score2,response2)
lifts = list(model1 = lift1, model2 = lift2)
plotLift(lifts)
#or
plotLift(model1 = lift1, model2 = lift2) 

danielfm123/dftools documentation built on July 17, 2021, 1 p.m.