cumGainsChart {CustomerScoringMetrics} | R Documentation |
Visualize gain through a cumulative gains chart.
cumGainsChart(predTest, depTest, resolution = 1/10)
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%). |
Koen W. De Bock, kdebock@audencia.com
Linoff, G.S. and Berry, M.J.A (2011): "Data Mining Techniques: For Marketing, Sales, and Customer Relationship Management - Third Edition". John Wiley & Sons.
topDecileLift
, liftIndex
, liftChart
## Load response modeling predictions
data("response")
## Apply cumGainschart function to visualize cumulative gains of a customer response model
cumGainsChart(response$test[,2],response$test[,1])