survsimpackage implements methods to simulate survival data from simple and complex settings (Crowther and Lambert, 2013).
This page contains information on how to install the package, links to version histories, and a collection of tutorials and examples of how to simulate a wide variety of survival data.
The current stable version of
survsim can be installed from the SSC archive by typing:
ssc install survsim
Any updates can be picked up by typing
adoupdate, update. A detailed version history is provided.
The development version of
survsim in Stata (which contains new features still in testing), can be installed by typing:
net install survsim, from("https://www.mjcrowther.co.uk/code/survsim/")
and then run
adoupdate as normal to pick up any updates. A detailed version history of the development version is also provided.
Following installation, see
help survsim for an overview of the package.
For detailed examples see the survival simulation tutorials in Stata page.
Below are publications which have contributed to the development of the
Crowther MJ, Lambert PC. Simulating complex survival data. The Stata Journal 2012;12(4):674-687.
Crowther MJ, Lambert PC. Simulating biologically plausible complex survival data. Statistics in Medicine 2013;32(23):4118-4134.