Estimate individual treatment rules (ITR)
estimate_itr(
treatment,
form,
data,
algorithms,
budget,
n_folds = 5,
split_ratio = 0,
ngates = 5,
preProcess = NULL,
weights = NULL,
trControl = caret::trainControl(method = "none"),
tuneGrid = NULL,
tuneLength = ifelse(trControl$method == "none", 1, 3),
user_model = NULL,
SL_library = NULL,
...
)
An object of itr
class
Treatment variable
a formula object that takes the form y ~ T + x1 + x2 + ...
.
A data frame that contains the outcome y
and the treatment T
.
List of machine learning algorithms to be used.
The maximum percentage of population that can be treated under the budget constraint.
Number of cross-validation folds. Default is 5.
Split ratio between train and test set under sample splitting. Default is 0.
The number of groups to separate the data into. The groups are determined by tau. Default is 5.
caret parameter
caret parameter
caret parameter
caret parameter
caret parameter
A user-defined function to create an ITR. The function should take the data as input and return a model to estimate the ITR.
A list of machine learning algorithms to be used in the super learner.
Additional arguments passed to caret::train