liftIndex {CustomerScoringMetrics} | R Documentation |
Calculates lift index metric.
liftIndex(predTest, depTest)
predTest |
Vector with predictions (real-valued or discrete) |
depTest |
Vector with true class labels |
Lift index value
Koen W. De Bock, kdebock@audencia.com
Berry, M.J.A. and Linoff, G.S. (2004): "Data Mining Techniques: For Marketing, Sales, and Customer Relationship Management - Second Edition". John Wiley & Sons.
liftTable
, topDecileLift
, liftChart
## Load response modeling predictions
data("response")
## Calculate lift index for test sample results
li<-liftIndex(response$test[,2],response$test[,1])
print(li)