View source: R/performance_curve.R
lift | R Documentation |
Calculate lift curves from observed and predicted responses.
lift(x, y = NULL, weights = NULL, na.rm = TRUE, ...)
x |
observed responses or resample result containing observed and predicted responses. |
y |
predicted responses if not contained in |
weights |
numeric vector of non-negative
case weights for the observed |
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
.
c
, plot
, summary
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.