View source: R/survival_operations.R
join | R Documentation |
Project survival from a survival distribution using one or more survival distributions using the specified cut points.
join(..., at)
join_(dots, at)
... |
Survival distributions to be used in the projection. |
at |
A vector of times corresponding to the cut point(s) to be used. |
dots |
Used to work around non-standard evaluation. |
A surv_projection
object.
dist1 <- define_surv_dist(distribution = "exp", rate = .5)
dist2 <- define_surv_dist(distribution = "gompertz", rate = .5, shape = 1)
join_dist <- join(dist1, dist2, at=20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.