Paul Lambert
  • Home
  • Publications
  • Software & Tutorials
  • Talks
  • Courses
  • Interactive graphs

On this page

  • My main Stata commands.
  • Older (and less used now)

Software & Tutorials

I have developed a number of Stata commands. I have added some examples/tutorials. I occasionally add to these.

My main Stata commands.

  • stpm3 - flexible parametric survival models
  • standsurv - standardized survival curves and more after fitting various types of survival models.
  • mrsprep - prepare data to directly fit marginal relative survival models.
  • stpp - Non-parametric marginal relative (net) survival and more.
  • mlad - Maximum likelIhood estimation with automatic differentiation using Python
  • stcrprep - data-preparation command to fit a range of competing risks models.
  • gensplines - obtain basis functions for various types of splines.

Older (and less used now)

  • stpm2 - flexible parametric survival models
  • stpm2_standsurv - standardized survival curves after fitting an stpm2 model
  • rcsgen - generate restricted cubic splines
  • strcs - flexible parametric models on log hazard scale
  • stpm2cif - cause-specific cumulative incidence function after fitting a stpm2 competing risks model
  • partpred - partial predictions

I have worked with Paul Dickman, who has written some excellent Stata tutorials, many of which use my commands.