Skip to contents

This function adds a column indicating cancer-specific death events, defined as death (Vital Status = 1) where the main cause of death was primary cancer (codes 1 or 3).

Usage

emii_add_cancer_specific(.data)

Arguments

.data

The input dataframe containing patient vital status data

Value

Original dataframe with an additional boolean column 'event_cancer_specific'