Measure top decile lift
Compute and compare the top decile lift of the churn prediction models using the function TopDecileLift() in the lift package.
The function takes two arguments:
- The true churn label in the test set,
test_set$Future. - The model prediction:
a. For logistic regression, use the prediction from the
predictfunction. b. For random forest, use the second column of the predictions from thepredictfunction.
The objects firstPredictions, secondPredictions, thirdPredictions, and rfPredictions, and the package lifthave been loaded for you.
Which model has the highest top decile lift?
This exercise is part of the course
Predictive Analytics using Networked Data in R
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise