Learn R Programming

tools4uplift (version 0.1-0)

DualUplift: Two-model estimator

Description

Fit the two-model uplift model estimator.

Usage

DualUplift(data, treat, outcome, predictors)

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.

Value

model0

Fitted model for control group

model1

Fitted model for treatment group

See Also

DualPredict

Examples

Run this code
# 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