cumGainsTable {CustomerScoringMetrics} | R Documentation |
Calculates cumulative gains table
Description
Calculates a cumulative gains (cumulative lift) table, showing for different percentiles of predicted scores the percentage of customers with the behavior or characterstic of interest is reached.
Usage
cumGainsTable(predTest, depTest, resolution = 1/10)
Arguments
predTest |
Vector with predictions (real-valued or discrete) |
depTest |
Vector with true class labels |
resolution |
Value for the determination of percentile intervals. Default 1/10 (10%). |
Value
A gain percentage table.
Author(s)
Koen W. De Bock, kdebock@audencia.com
References
Linoff, G.S. and Berry, M.J.A (2011): "Data Mining Techniques: For Marketing, Sales, and Customer Relationship Management - Third Edition". John Wiley & Sons.
See Also
topDecileLift
, liftIndex
, liftChart
Examples
## Load response modeling predictions
data("response")
## Apply cumGainsTable function to obtain cumulative gains table for test sample results
## and print results
cgt<-cumGainsTable(response$test[,2],response$test[,1])
print(cgt)
[Package CustomerScoringMetrics version 1.0.0 Index]