IPWreg.SuperLearner | R Documentation |
Apply IPW transformation on fitted survival and censoring probabilities in each time window and estimate P(T > t | T > truncation time, covariates available at truncation time) with SuperLearner::SuperLearner
.
IPWreg.SuperLearner(
covariates,
follow.up.time,
pred_censor.list,
visit.times,
tvals,
truncation.index,
id.var,
time.var,
event.var,
Q.formula = ~.,
Q.SuperLearner.control = list(family = gaussian(), SL.library = "SL.lm"),
denom.survival.trunc = 0.001
)
covariates |
see |
follow.up.time |
see |
pred_censor.list |
list of |
visit.times |
see |
tvals |
see |
truncation.index |
see |
id.var |
see |
time.var |
see |
event.var |
see |
Q.formula |
formula to specify covariates being used for estimating P(T > t | T > |
Q.SuperLearner.control |
see |
denom.survival.trunc |
see |
a list of mult_stage_survfit
objects, each corresponding to a value in tvals
This function is designed to be called by other functions such as SDRsurv
, therefore inputs are not thoroughly checked. Incorrect inputs may lead to errors with non-informative messages. The user may call this function if more flexibility is desired.
Custom learners may be specified by providing an element named SL.library
in Q.SuperLearner.control
.The user may refer to resources such as https://cran.r-project.org/web/packages/SuperLearner/vignettes/Guide-to-SuperLearner.html for a guide to create custom learners.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.