Learn R Programming

tools4uplift (version 0.1-0)

InterUplift: Interaction estimator

Description

Fit the interaction uplift model estimator.

Usage

InterUplift(data, treat, outcome, predictors, input = "all")

Arguments

data

a data frame containing the treatment, the outcome and the predictors.

treat

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

outcome

name of a binary response (numeric) vector (coded as 0/1).

predictors

a vector of names representing the explanatory variables to include in the model.

input

an option for predictors argument. If "all" (default), the model assumes that the model has to create the interaction of all varibles with treat. If "best", the model assumes that the predictors vector is the output of the BestFeatures function.

Value

an interaction model

See Also

InterPredict

Examples

Run this code
# NOT RUN {
library(tools4uplift)
data("SimUplift")

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

# }

Run the code above in your browser using DataLab