response_model {DeepLearningCausal} | R Documentation |
Response model from experimental data using SL ensemble
Description
Train response model (response variable as outcome and covariates) from all compliers (actual + predicted) in experimental data using SL ensemble.
Usage
response_model(
response.formula,
exp.data,
compl.var,
exp.compliers,
family = "binomial",
ID = NULL,
SL.learners = c("SL.glmnet", "SL.xgboost", "SL.ranger", "SL.nnet", "SL.glm")
)
Arguments
response.formula |
formula to fit the response model (y ~ x) using binary outcome variable and covariates |
exp.data |
experimental dataset. |
compl.var |
string specifying binary complier variable |
exp.compliers |
|
family |
string for |
ID |
string for identifier variable. |
SL.learners |
vector of names of ML algorithms used for ensemble model. |
Value
trained response model.
[Package DeepLearningCausal version 0.0.104 Index]