apply_shift | R Documentation |
Apply a fixed shift in time to move the hazards of a survival distribution forwards or backwards.
apply_shift(dist, shift)
dist |
a survival distribution |
shift |
amount of time to shift distribution, where a positive value moves hazards forward and a negative value delays hazards. |
A surv_shift
object.
shifted_dist <- apply_shift(
define_surv_param("exp", rate = 0.25),
3
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.