Supplementary materials

see https://cancerregistryofnorway.github.io/cancer-survival-measures/

Purpose

This repo is for code used in:

Tor Åge Myklebust, Bjarte Aagnes, Yngvar Nilssen, Mark Rutherford, Paul C. Lambert, Therese M. L. Andersson, Anna L. V. Johansson, Paul W. Dickman & Bjørn Møller Improving communication of cancer survival statistics—feasibility of implementing model-based algorithms in routine publications. Br J Cancer (2023). https://doi.org/10.1038/s41416-023-02360-5

Corresponding author: Tor Åge Myklebust tamy@kreftregisteret.no

Cancer survival in Norway 1965–2021: Extending standard reporting to improve communication of survival statistics

TÅ Myklebust, B Aagnes, Y Nilssen, ALV Johansson, MJ Rutherford, TML Andersson, PC Lambert, B Møller, PW Dickman. Cancer survival in Norway 1965–2021: Extending standard reporting to improve communication of survival statistics. Oslo: Cancer Registry of Norway, 2022.

Specific questions on details of this Special Issue may be sent to CIN2021survival@kreftregisteret.no

Description

Introduction

Cancer in Norway Special Issue 2021 focuses on calculating and presenting a range of different measures that are useful for improving communication of cancer patient survival. This work uses flexible parametric relative survival models, which are estimated for 23 different cancer sites.

For each cancer site model selection is done by iterating a pre-specified list of models and choosing the first model that converges on the relevant data. Missing data on cancer stage was imputed by multiple imputation.

Measures are then predicted from the chosen models.

For more detailed description of methods see Statistical analyses page S10

Organisation of project

master.do

Command files are organised depending on their purpose:

Result files

/results

Validation

To validate that the code reproduces the results used in CIN Special Issue 2021 we compare result datasets from different runs of code.

Dependencies

  • all code dependecies are included in /ado
  • real data : cancer data and life-tables must be provied by user
  • test data: (realistic synthetic data will be added)

Parallel computing of predictions

The code split-apply-combine on the local machine by starting one Stata sessions per group. Starting a new Stata session is restricted to avoid exhausting computer resources (the project was ran on a server with 24 processors and 32G RAM).

see parallell_sessions.do

Reproducability

The original patient data is not available due to privacy legislation.

For identical data the code will reproduce results exactly depending on:

  1. Setting the same seed at start of analysis.

  2. Sorting order of observations:

    1. Using stable sort, because sorting is randomized for tied values. Especially, for any bysort command [catvars] and (sortvars) should identify the observations.
    2. Before mi impute the sort order of observations must be identical between repeated analysis because the same sequence of random numbers will potentially correspond to different observations during the computation of imputed values. (See data_prep.do#L24-L25)
  3. When using rcsgen version 1.5.9 13FEB2022 with the option orthog the returned variables must be recast from double to float due to rounding errors. (See define_age_splines_per_site.do#L45-L47)