Introduction to cpsurvsim
Exponential change-point / piecewise constant hazard function | Weibull change-point hazard function