Do-file containing weighted Kaplan Meier Code for all approaches described in manuscript "Fair comparisons of cause-specific and relative survival by accounting for the systematic removal of patients from risk-sets" by Wells et al. (submitted to Cancer Epidemiology).
Do-file containing the code for the weighted Kaplan Meier approaches used to account for the systematic removal of patients from risk-sets when using cause-specific survival to estimate marginal net survival.
To successfully recreate the analysis as presented in the journal article, two datasets should be used as input files, namely:
- Simulated Dataset (#986) from Scenario 2
- Simulated Dataset Population Mortality File
Datasets are referenced below.
Stata software is required to run the code, all the datasets should be within '.do' file working directory.
Funding
This study was supported by the National Institute for Health and Care Research (NIHR) Applied Research Collaboration East Midlands (ARC EM) and Leicester NIHR Biomedical Research Centre (BRC) as well as Health Data Research UK.