mult_stage_survfit | R Documentation |
This function is the creator of mult_stage_survfit
class. A mult_stage_survfit
object is a collection of fitted models for conditional survival probability within each time window. The associated predict
and fitted
methods autocmatically conduct the prediction, which is multiplying all model predictions, potentially after clipping the predictions into an interval in [0,1]
.
mult_stage_survfit(
covariate.data,
formula,
visit.times,
tval,
truncation.index,
models
)
covariate.data |
data frame containing the covariates used to train the models |
formula |
formula used in the models |
visit.times |
numeric/integer vector of visit times in ascending order. The first visit time is typically the baseline. |
truncation.index |
index of the visit time to which left-truncation is applied. The truncation time is |
models |
list of models. Each model can predict the survival probability beyond the next visit time given survival at the current visit time. Models should be in an ascending order according to the corresponding visit times. |
tvals |
time t for which P(T > t) (potentially given covariates) is estimated (T is the time to event) |
a "mult_stage_survfit
" object, essentially a list with input parameters of this function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.