Apply a fixed shift in time to move the hazards of a survival distribution forwards or backwards.
Arguments
- dist
a survival distribution
- shift
amount of time to shift distribution, where a positive value moves hazards forward and a negative value delays hazards.
Examples
shifted_dist <- apply_shift(
define_surv_param("exp", rate = 0.25),
3
)