predict.BinUplift: Prediction from univariate quantization

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

View source: R/predict.R

Description

Predictions from the univariate quantization method, i.e. this function transforms a continuous variable into a categorical one.

Usage

1
2
## S3 method for class 'BinUplift'
predict(object, newdata, ...)

Arguments

object

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

newdata

the variable that was quantized in object.

...

additional arguments to be passed to cut function.

Value

a quantized variable

Author(s)

Mouloud Belbahri

References

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

BinUplift

Examples

1
2
3
4
5
6
7
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)

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