Simulating survival data in Stata

The survsim package 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.

$~$

Installation:


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.

$~$

Tutorials:


For detailed examples see the survival simulation tutorials in Stata page.

For an introductory seminar, see “Simulating time-to-event data from parametric distributions, custom distributions, competing risk models and general multi-state models”.

$~$

Publications:


Below are publications which have contributed to the development of the survsim package.

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.

Crowther MJ. Simulating time-to-event data from parametric distributions, custom distributions, competings risk models and general multi-state models. Pre-print 2020.


Related

comments powered by Disqus