Description Usage Arguments Value
Run the superlearner model with pseudo observations as the outcome
1 2 | superlearner_estimate(data, Y = "cause1.pseudo", X = paste0("X", 1:20),
Y2 = "cause2.pseudo", SL.library = NULL)
|
data |
A data frame with pseudo observations and a set of predictors |
Y |
character string for the outcome variable in data |
X |
character vector for the predictor variables in data |
Y2 |
character string for the pseudo-observations of the competing outcome |
SL.library |
optional list of SL library methods |
A fitted model object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.