stcox

Interpretation of interaction effects

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.

Comparing Cox and flexible parametric 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.