Learn R Programming

CustomerScoringMetrics (version 1.0.0)

cumGainsChart: 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%).

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

Run this code
# NOT RUN {
## 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])

# }

Run the code above in your browser using DataLab