View source: R/survival_operations.R
apply_hr | R Documentation |
Proportional reduce or increase the hazard rate of a distribution.
apply_hr(dist, hr, log_hr = FALSE)
dist |
A survival distribution. |
hr |
A hazard ratio to be applied. |
log_hr |
If |
A surv_ph
object.
dist1 <- define_surv_dist(distribution = "exp", rate = .25)
ph_dist <- apply_hr(dist1, 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.