predict.InterUplift: Predictions from an interaction estimator

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/predict.R

Description

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

Usage

1
2
## 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. (2021) Uplift Regression : The R Package tools4uplift, <https://arxiv.org/pdf/1901.10867.pdf>

See Also

InterUplift

Examples

1
2
3
4
5
6
library(tools4uplift)
data("SimUplift")

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

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

tools4uplift documentation built on Jan. 11, 2022, 3 a.m.