| add_hazards | R Documentation |
Combine two or more survival distributions as independent risks by adding their hazards.
add_hazards(dist1, dist2, ...)
dist1 |
survival distribution to add |
dist2 |
second survival distribution to add |
... |
additional survival distributions to add |
a surv_add_haz object
dist1 <- define_surv_param("exp", rate = .125)
dist2 <- define_surv_param("weibull", shape = 1.2, scale = 50)
combined_dist <- add_hazards(dist1, dist2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.