Learn R Programming

MachineShop (version 1.6.0)

lift: Model Lift

Description

Calculate lift estimates from observed and predicted responses.

Usage

lift(x, y = NULL, na.rm = TRUE, ...)

Lift(...)

Arguments

x

observed responses or resample result containing observed and predicted responses.

y

predicted responses if not contained in x.

na.rm

logical indicating whether to remove observed or predicted responses that are NA when calculating metrics.

...

named or unnamed lift output to combine together with the Lift constructor.

Value

Lift class object that inherits from Curves.

See Also

plot, summary

Examples

Run this code
# NOT RUN {
library(MASS)

res <- resample(type ~ ., data = Pima.tr, model = GBMModel)
lf <- lift(res)
plot(lf)

# }

Run the code above in your browser using DataLab