Mix a set of survival distributions using the specified weights.
Arguments
- 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
Examples
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)