Description Usage Author(s) Examples
Explains model averaging wrappers which can be used in conjunction with package SuperLearner (and tmle and ltmle)
1 |
Michael Schomaker
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
listSLWrappers()
library(SuperLearner) # needs to be installed
SL.library <- c("SL.glm","SL.stepAIC", "SL.mean", "SL.step.interaction", "SL.mma.int", "SL.jma")
SL.library2 <- c("SL.glm","SL.stepAIC", "SL.mean", "SL.step.interaction", "SL.lae2")
data(Prostate)
P1 <- SuperLearner(Y=Prostate[,9], X=Prostate[,-9], SL.library = SL.library, verbose=T)
P2 <- SuperLearner(Y=Prostate[,5], X=Prostate[,-5], family="binomial", SL.library = SL.library2, verbose=T)
P2$coef
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.