powered by
Calculate lift curves from observed and predicted responses.
lift(x, y = NULL, weights = NULL, na.rm = TRUE, ...)
LiftCurve class object that inherits from PerformanceCurve.
LiftCurve
PerformanceCurve
observed responses or resample result containing observed and predicted responses.
predicted responses if not contained in x.
x
numeric vector of non-negative case weights for the observed x responses [default: equal weights].
logical indicating whether to remove observed or predicted responses that are NA when calculating metrics.
NA
arguments passed to other methods.
c, plot, summary
c
plot
summary
# \donttest{ ## 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) # }
Run the code above in your browser using DataLab