predict.InterUplift {tools4uplift}R Documentation

Predictions from an interaction estimator

Description

Predictions from the interaction uplift model estimator with associated model performance.

Usage


## S3 method for class 'InterUplift'
predict(object, newdata, treat, ...)

Arguments

object

an object of class InterUplift, as that created by the function InterUplift.

newdata

a data frame containing the treatment, the outcome and the predictors of observations at which predictions are required.

treat

name of a binary (numeric) vector representing the treatment assignment (coded as 0/1).

...

additional arguments to be passed to predict.glm function for the interaction model.

Value

a vector of predicted uplift

Author(s)

Mouloud Belbahri

References

Lo, V., S., Y. (2002) The true lift model: a novel data mining approach to response modeling in database marketing. ACM SIGKDD Explorations Newsletter, Vol. 4(2), 78-86.

Belbahri, M., Murua, A., Gandouet, O., and Partovi Nia, V. (2019) Uplift Regression, <https://dms.umontreal.ca/~murua/research/UpliftRegression.pdf>

See Also

InterUplift

Examples


library(tools4uplift)
data("SimUplift")

fit <- InterUplift(SimUplift, "treat", "y", colnames(SimUplift[, 3:12]))

pred <- predict(fit, SimUplift, "treat")


[Package tools4uplift version 1.0.0 Index]