View source: R/sl_fit_survival.R
using survtmle package
1 2 3 4 5 6 7 8 9 10 11 | initial_sl_fit(
T_tilde,
Delta,
A,
W,
t_max,
sl_failure = c("SL.glm"),
sl_censoring = c("SL.glm"),
sl_treatment = c("SL.glm"),
gtol = 0.001
)
|
T_tilde |
vector of last follow up time |
Delta |
vector of censoring indicator |
A |
vector of treatment |
W |
data.frame of baseline covariates |
t_max |
the maximum time to estimate the survival probabilities |
sl_failure |
SuperLearner library for failure event hazard |
sl_censoring |
SuperLearner library for censoring event hazard |
sl_treatment |
SuperLearner library for propensity score |
gtol |
treshold for the fitted propensity scores |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.