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.
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).
Estimate conditional (on surviving some time) relative survival using several approaches. We estimate from both life tables and based on a flexible parametric model.
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.