View source: R/patt_ensemble.R
complier_mod | R Documentation |
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")
)
exp.data |
list object of experimental data. |
complier.formula |
formula to fit compliance model (c ~ x) using complier variable and covariates |
treat.var |
string specifying the binary treatment variable |
ID |
string for name of indentifier variable. |
SL.learners |
vector of strings for ML classifier algorithms. If left
|
model object of trained model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.