A toy dataset provided in Maringe et al. (2020) to demonstrate the clone-censor weight approach.

toy_df

Format

toy_df

A data frame with 200 rows and 12 columns:

id

patient identifier

fup_obs

observed follow-up time (time to death or 1 year if censored alive)

death

observed event of interest (all-cause death) 1: dead, 0:alive

timetosurgery

time to surgery (NA if no surgery)

age

age at diagnosis

sex

patient's sex

perf

performance status at diagnosis

stage

stage at diagnosis

deprivation

deprivation score

charlson

Charlson's comorbidity index

emergency

route to diagnosis

References

Maringe, Camille, et al. "Reflection on modern methods: trial emulation in the presence of immortal-time bias. Assessing the benefit of major surgery for elderly lung cancer patients using observational data." International journal of epidemiology 49.5 (2020): 1719-1729.