STPM2

This is a user-written Stata program for fitting flexible parametric survival models on the log cumulative hazard scale. The files for this program can be downloaded and installed by running the command ‘ssc install stpm2’ in Stata.

Flexible parametric survival models use restricted cubic splines to model the log cumulative hazard function. This approach also enables modelling of time-dependent effects as well as non-linear effects of explanatory variable(s). Post-estimation commands allow predictions to be made from the model.

References and further reading

Nelson CP, Lambert PC, Squire IB, Jones DR. Flexible parametric models for relative survival, with application in coronary heart disease. Statistics in Medicine. 2007; 26: 5486-98.

Lambert PC, Royston P. Further development of flexible parametric models for survival analysis. Stata Journal. 2009; 9: 265-90.

Royston P, Lambert PC. Flexible parametric survival analysis using Stata: Beyond the Cox Model. Stata Press, Texas, USA. 2011

Comments are closed.