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

On this page

  • Using standsurv
    • Standard Survival Models
    • Competing Risk Models
    • Relative/Net Survival Models
  • General
  • Releases

standsurv

The standsurv command estimates standardized survival curves and related measures. It also allows various contrasts between the standardized functions. It is a post-estimation command and can be used after fitting a wide range of survival models. These include streg models (except generalized gamma), stpm2 models, stpm3models and strcs models.

Note that I previously developed stpm2_standsurv, which only works with stpm2 models, but standsurv superceeds that. You can do the same things with standsurv and much, much more.

So some of the examples are the same as stpm2_standsurv.

You can install standsurv within Stata using

. ssc install standsurv 

Using standsurv

Standard Survival Models

  • Standardized survival functions and contrasts.
  • Centiles of the standardized survival function.
  • Restricted mean survival using standardized survival functions.
  • The hazard function of the standardized survival curve.
  • Estimating attributable fractions in cohort studies
  • Some comments on why I am not so keen on stteffects
  • Why just not use margins?

Competing Risk Models

  • Standardized cause-specific cumulative incidence functions.
  • Other useful standardized measures in competing risks

Relative/Net Survival Models

  • Standardized Relative Survival.
  • External age-standardization
  • Loss in Expectation of Life
  • Standardized Crude Probabilities of death.

General

  • Comparing models fitted in different countries

Releases

See standsurv_releases.txt