Last data update: 2014.03.03

R: Compute the top decile lift and plot the lift curve
plotLiftR Documentation

Compute the top decile lift and plot the lift curve

Description

plotLift plots the commonly used lift curve by ordering the data by the predictions, and computing the proportion of positives for each bucket.

Usage

plotLift(predicted, labels, cumulative = TRUE, n.buckets = 10, ...)

Arguments

predicted

A numeric vector with the classifier's predicted scores / probabilities

labels

An integer vector containing binary labels with values 0,1

cumulative

boolean. Should the cumulative lift curve be plotted or not?

n.buckets

scalar. How many buckets should be used. One can use more buckets with large datasets

...

additional parameters to the plot function

Value

lift curve

Author(s)

Steven Hoornaert, Michel Ballings, Dirk Van den Poel, Maintainer: Steven.Hoornaert@UGent.be

Examples

data(churn)
plotLift(churn$predictions,churn$labels)

Results