Illustrates Stata factor variable notation and how to reparameterise a model to get the estimated effect of an exposure for each level of a modifier. Illustrates how we can fit a single model with interactions that is equivalent to stratified models.
A Comparison of Cox and flexible parametric models with application to studying sex differences in survival of patients diagnosed with melanoma. Illustration of how to plot the time-varying hazard ratio from a flexible parametric model.
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.