Survival models and health sequences Supporting Code for paper: 'Survival models and health sequences'