Simulating time-to-event data from parametric distributions, custom distributions, competing risk models and general multi-state models


In this paper I describe some substantial extensions to the survsim command for simulating survival data. survsim can now simulate survival data from a parametric distribution, a custom/user-defined distribution, from a fitted merlin model, from a specified cause-specific hazards competing risks model, or from a specified general multi-state model. I illustrate the command with some examples from each setting, demonstrating the huge flexibilty that can be used to better evaluate statistical methods.