getLift: Provides Lift Curve

Description Usage Arguments Value Author(s)

View source: R/getLift.R

Description

Calculates the lift curve based on a score(numeric 0-1) and responce(TRUE/FALSE) vector

Usage

1
getLift(score, response, groups = 100)

Arguments

score

a numeric vector with the scores from the prodictive model

response

a boolean (TRUE or FALSE) vector with the real values from the dataset

groups

number of percentiles, default 100

Value

data.frame with the values of the Lift curve. score = runif(1000) response = (score + rnorm(1000,0,0.1)) > 0.5 lift = getLift(score,response) head(lift) tail(lift)

Author(s)

Daniel Fischer


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