cumGainsChart {CustomerScoringMetrics} | R Documentation |
Plot a cumulative gains chart
Description
Visualize gain through a cumulative gains chart.
Usage
cumGainsChart(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%). |
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 cumGainschart function to visualize cumulative gains of a customer response model
cumGainsChart(response$test[,2],response$test[,1])
[Package CustomerScoringMetrics version 1.0.0 Index]