Learn R Programming

CustomerScoringMetrics (version 1.0.0)

liftIndex: Calculate lift index

Description

Calculates lift index metric.

Usage

liftIndex(predTest, depTest)

Arguments

predTest

Vector with predictions (real-valued or discrete)

depTest

Vector with true class labels

Value

Lift index value

References

Berry, M.J.A. and Linoff, G.S. (2004): "Data Mining Techniques: For Marketing, Sales, and Customer Relationship Management - Second Edition". John Wiley & Sons.

See Also

liftTable, topDecileLift, liftChart

Examples

Run this code
# NOT RUN {
## Load response modeling predictions
data("response")
## Calculate lift index for test sample results
li<-liftIndex(response$test[,2],response$test[,1])
print(li)

# }

Run the code above in your browser using DataLab