predict.BinUplift {tools4uplift} | R Documentation |
Predictions from the univariate quantization method, i.e. this function transforms a continuous variable into a categorical one.
## S3 method for class 'BinUplift' predict(object, newdata, ...)
object |
an object of class |
newdata |
the variable that was quantized in |
... |
additional arguments to be passed to |
a quantized variable
Mouloud Belbahri
Belbahri, M., Murua, A., Gandouet, O., and Partovi Nia, V. (2019) Uplift Regression, <https://dms.umontreal.ca/~murua/research/UpliftRegression.pdf>
BinUplift
library(tools4uplift) data("SimUplift") binX1 <- BinUplift(data = SimUplift, treat = "treat", outcome = "y", x = "X1", n.split = 100, alpha = 0.01, n.min = 30) quantizedX1 <- predict(binX1, SimUplift$X1)