| mix | R Documentation |
Mix a set of survival distributions using the specified weights.
mix(dist1, weight1, dist2, weight2, ...)
dist1 |
first survival distribution to mix |
weight1 |
probability weight for first distribution |
dist2 |
second survival distribution to mix |
weight2 |
probability weight for second distribution |
... |
additional distributions and weights |
A surv_mix object.
dist1 <- define_surv_param("exp", rate = .5)
dist2 <- define_surv_param("gompertz", rate = .5, shape = 1)
pooled_dist <- mix(dist1, 0.25, dist2, 0.75)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.