powered by
Proportional reduce or increase the hazard rate of a distribution.
apply_hr(dist, hr, log_hr = FALSE)
A surv_ph object.
surv_ph
A survival distribution.
A hazard ratio to be applied.
If TRUE, the hazard ratio is exponentiated before being applied.
TRUE
dist1 <- define_surv_dist(distribution = "exp", rate = .25) ph_dist <- apply_hr(dist1, 0.5)
Run the code above in your browser using DataLab