powered by
Fit the two-model uplift model estimator.
DualUplift(data, treat, outcome, predictors)
a data frame containing the treatment, the outcome and the predictors.
name of a binary (numeric) vector representing the treatment assignment (coded as 0/1).
name of a binary response (numeric) vector (coded as 0/1).
a vector of names representing the explanatory variables to include in the model.
Fitted model for control group
Fitted model for treatment group
DualPredict
# NOT RUN { library(tools4uplift) data("SimUplift") fit <- DualUplift(SimUplift, "treat", "y", predictors = colnames(SimUplift[, 3:12])) # }
Run the code above in your browser using DataLab