Index: Stata tutorials

This page provides an index of some Stata tutorials, most of which are about survival analysis especially estimation and modelling of relative/net survival. My colleagues Paul Lambert and Michael Crowther have some excellent tutorials on similar and related topics.

Index of Stata tutorials on survival modelling

Approaches to age-standardisation

Index of tutorials on non-parametric estimation of relative/net survival in Stata (strs and stnet)

Extended index (with short summary of each page)

Standardised survival curves: sex differences in survival

In this tutorial, we examine sex difference in survival for patients diagnosed with melanoma and illustrate how to estimate the causal effect of sex on patient survival using regression standardisation (also known and G-Computation). We discuss various approaches to estimating adjusted survival curves and illustrate the meansurv and stpm2_standsurv post-estimation commands to stpm2 (for fitting flexible parametric models in Stata).

Age-standardised net survival (non-parametric)

Age-standardised net survival using non-parametric methods (Ederer II and Pohar Perme) and ICSS weights.

Conditional survival

Estimate conditional (on surviving some time) relative survival using several approaches. We estimate from both life tables and based on a flexible parametric model.

Multiple imputation for missing covariates when modelling relative survival

This exercise illustrates an approach to modelling relative survival with missing covariate data using multiple imputation.

Non-parametric estimation of net survival with four approaches

Estimation of relative/net survival using four difference approaches (Ederer I, Ederer II, Hakulinen, Pohar Perme)

Replicate a Cox model using Poisson regression

An illustration of how one can both approximate and exactly replicate estimates from a Cox model using Poisson regression

Model-based age-standardisation with stpm2

In this tutorial, we use a model-based approach to estimate all-cause survival that is age-standardised to the International Cancer Survival Standard (ICSS). In a separate tutorial, we accomplished this by fitting a separate model for each age group and then taking the weighted average of the age-specific estimates to get the age-standardised estimates. In this tutorial we apply the weights at an individual level, which precludes the need to explicitly estimate survival within each age group.