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 identifier variable.
vector of strings for ML classifier algorithms. Defaults to extreme gradient boosting, elastic net regression, random forest, and neural nets.