Generate either survival probabilities or conditional probabilities of event for each model cycle.
eval_surv(x, time, ...)compute_surv_(x, time, cycle_length = 1, type = c("prob", "survival"), ...)
# S3 method for surv_fit
eval_surv(x, time, ...)
# S3 method for default
eval_surv(x, ...)
# S3 method for survfit
eval_surv(x, time, ...)
# S3 method for flexsurvreg
eval_surv(x, time, ...)
# S3 method for surv_model
eval_surv(x, time, ...)
# S3 method for surv_projection
eval_surv(x, time, ...)
# S3 method for surv_pooled
eval_surv(x, time, ...)
# S3 method for surv_ph
eval_surv(x, time, ...)
# S3 method for surv_shift
eval_surv(x, time, ...)
# S3 method for surv_aft
eval_surv(x, time, ...)
# S3 method for surv_po
eval_surv(x, time, ...)
# S3 method for surv_add_haz
eval_surv(x, time, ...)
# S3 method for surv_dist
eval_surv(x, time, ...)
# S3 method for surv_table
eval_surv(x, time, ...)
Returns either the survival probabilities or conditional probabilities of event for each cycle.
A survival object
The model_time
or state_time
for which
to predict.
arguments passed to methods.
The value of a Markov cycle in absolute time units.
Either prob
, for transition probabilities,
or surv
, for survival.
The results of compute_surv()
are memoised for
options("heemod.memotime")
(default: 1 hour) to
increase resampling performance.