Train response model (response variable as outcome and covariates) from all compliers (actual + predicted) in experimental data using SL ensemble.
response_model(
response.formula,
exp.data,
compl.var,
exp.compliers,
family = gaussian(),
ID = NULL,
SL.learners = c("SL.glmnet", "SL.xgboost", "SL.ranger", "SL.nnet", "SL.glm")
)trained response model.
formula to fit the response model (y ~ x) using binary outcome variable and covariates
experimental dataset.
string specifying binary complier variable
data.frame object of compliers from
complier_predict.
gaussian() or binomial().
string for identifier variable.
vector of names of ML algorithms used for ensemble model.