using survtmle package
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 |