lift {MachineShop} | R Documentation |
Calculate lift curves from observed and predicted responses.
lift(x, y = NULL, na.rm = TRUE, ...)
x |
observed responses or resample result containing observed and predicted responses. |
y |
predicted responses if not contained in |
na.rm |
logical indicating whether to remove observed or predicted
responses that are |
... |
arguments passed to other methods. |
LiftCurve
class object that inherits from
PerformanceCurve
.
## Requires prior installation of suggested package gbm to run data(Pima.tr, package = "MASS") res <- resample(type ~ ., data = Pima.tr, model = GBMModel) lf <- lift(res) plot(lf)