Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Lift

Image rplot-rocr-survey-lift


pdf("graphics/rplot-rocr-survey-lift.pdf")
library(rpart)
library(ROCR)
load("survey.Rdata")
survey.rp <- rpart(Salary.Group ~ ., data=survey)
survey.pred <- predict(survey.rp, data=survey)
pred <- prediction(survey.pred[,2], survey$Salary.Group)
lift <- performance(pred, "lift", "rpp")
plot(lift)
dev.off()

http://rattle.togaware.com/code/rplot-rocr-survey-lift.R



Copyright © 2004-2010 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
The PDF version is a formatted comprehensive draft book (with over 800 pages).
Brought to you by Togaware. This page generated: Sunday, 22 August 2010