join | R Documentation |
Join two or more distributions together at the specified cut points.
join(dist1, cut1, dist2, ...)
dist1 |
survival distribution to use from time |
cut1 |
cut point between |
dist2 |
survival distribution to use from |
... |
Additional cutpoints and distributions |
A surv_join
object
dist1 <- define_survival(distribution = "exp", rate = 0.05)
dist2 <- define_survival(distribution = "gompertz", rate = .5, shape = 1)
dist3 <- define_survival(distribution = "exp", rate = 0.25)
join_dist <- join(dist1, 20, dist2)
join_dist2 <- join(dist1, 20, dist2, 50, dist3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.