forked from ruthkeogh/superlearner_survival_tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackages.R
More file actions
37 lines (31 loc) · 1.07 KB
/
packages.R
File metadata and controls
37 lines (31 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#################################################################################
#################################################################################
#Super learner for time-to-event outcomes tutorial
#
#packages needed
#################################################################################
#################################################################################
library(tidyverse)
library(gam)
library(nnls)
library(survival)
library(riskRegression)
library(pec)
library(timeROC)
library(ranger)
library(randomForest)
library(randomForestSRC)
library(data.table)
library(glmnet)
library(pch)
#---
#Discrete-time superLearner: Polley and van der Laan 2011
library(SuperLearner)
#---
#Continuous-time superLearner: Westling et al. 2023
# devtools::install_github("tedwestling/survSuperLearner")
library(survSuperLearner)
#---
#Continuous-time superLearner (statelearner): Munch & Gerds 2024
#Need to run the functions in this folder
#https://github.com/amnudn/joint-survival-super-learner/blob/main/R-code/functions