Train model using group exposed to treatment with compliance as binary outcome variable and covariates.
complier_mod(
exp.data,
complier.formula,
treat.var,
ID = NULL,
SL.learners = c("SL.glmnet", "SL.xgboost", "SL.ranger", "SL.nnet", "SL.glm")
)
model object of trained model.
list object of experimental data.
formula to fit compliance model (c ~ x) using complier variable and covariates
string specifying the binary treatment variable
string for name of indentifier variable.
vector of strings for ML classifier algorithms. If left
NULL
employs extreme gradient boosting, elastic net regression, random
forest, and neural nets.