View source: R/doubly_robust.R
get_SL_fn | R Documentation |
Get the Super Learner function given a library of SuperLearner algorithms.
get_SL_fn(
SL.library = c("SL.earth", "SL.gam", "SL.glm", "SL.glmnet", "SL.glm.interaction",
"SL.ranger"),
family = gaussian()
)
SL.library |
Character vector containing SuperLearner algorithm names. |
family |
The family for the algorithm. If estimating the propensity score, set 'family = binomial', but if estimating the regression function, set 'family = gaussian()'. |
Function which takes three arguments 'y', 'X', and 'newX', the training outcome, training covariates, and evaluation covariates, respectively. This function takes 'y' and 'X' to train the algorithm and uses the 'SuperLearner' library to predict the outcome for the covariates 'newX'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.