View source: R/patt_ensemble.R
| response_model | R Documentation |
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")
)
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 |
gaussian() or binomial(). |
ID |
string for identifier variable. |
SL.learners |
vector of names of ML algorithms used for ensemble model. |
trained response model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.