Apply an acceleration factor to proportionally increase or reduce the time-to-event of a survival distribution.
Arguments
- dist
a survival distribution
- af
an acceleration factor to be applied to survival distribution
- log_af
optional argument (defaults to
FALSE
) to indicate that provided acceleration factor is on log scale
Examples
dist1 <- define_surv_param("exp", rate = 0.25)
aft_dist <- apply_af(dist1, 1.5)