View source: R/survival_operations.R
mix | R Documentation |
Mix a set of survival distributions using the specified weights.
mix(..., weights = 1)
mix_(dots, weights = 1)
... |
Survival distributions to be used in the projection. |
weights |
A vector of weights used in pooling. |
dots |
Used to work around non-standard evaluation. |
A surv_pooled
object.
dist1 <- define_surv_dist(distribution = "exp", rate = .5)
dist2 <- define_surv_dist(distribution = "gompertz", rate = .5, shape = 1)
pooled_dist <- mix(dist1, dist2, weights = c(0.25, 0.75))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.