Join two or more distributions together at the specified cut points.
Arguments
- dist1
survival distribution to use from time
0
tocut
- cut1
cut point between
dist1
anddist2
- dist2
survival distribution to use from
cut
- ...
Additional cutpoints and distributions
Examples
dist1 <- define_survival(distribution = "exp", rate = 0.05)
dist2 <- define_survival(distribution = "gompertz", rate = .5, shape = 1)
dist3 <- define_survival(distribution = "exp", rate = 0.25)
join_dist <- join(dist1, 20, dist2)
join_dist2 <- join(dist1, 20, dist2, 50, dist3)