powered by
Mix a set of survival distributions using the specified weights.
mix(..., weights = 1)mix_(dots, weights = 1)
mix_(dots, weights = 1)
A surv_pooled object.
surv_pooled
Survival distributions to be used in the projection.
A vector of weights used in pooling.
Used to work around non-standard evaluation.
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))
Run the code above in your browser using DataLab