Skip to contents

A competing risks task for the mgus2 data set.

Format

R6::R6Class inheriting from TaskCompRisks.

Dictionary

This Task can be instantiated via the dictionary mlr_tasks or with the associated sugar function tsk():

mlr_tasks$get("mgus2")
tsk("mgus2")

Meta Information

  • Task type: “cmprsk”

  • Dimensions: 1338x8

  • Properties: -

  • Has Missings: FALSE

  • Target: “time”, “event”

  • Features: “age”, “creat”, “dxyr”, “hgb”, “mspike”, “sex”

Competing risks scenario

The competing events are progression to plasma cell malignancy (PCM, cause 1) and death without prior progression (cause 2), with 0 indicating censoring. The original data describe a multi-state process in which patients can progress and subsequently die. This task focuses only on the occurrence of the first event, reducing the multi-state process to the competing risks setting, such that progression and death with no prior progression are mutually exclusive events.

Pre-processing

  • Kept only complete cases (no missing values).

  • Constructed time = ifelse(pstat == 1, ptime, futime), preserving the original time units in months.

  • Constructed integer event: 1 for progression (pstat == 1), 2 for death without prior progression (pstat == 0 and death == 1), and 0 for censoring (pstat == 0 and death == 0). Note that 9 subjects have progression and death recorded in the same month; these are classified as progression (cause 1).

  • Removed id and the original outcome columns ptime, pstat, futime, and death.

  • Retained features age, sex, dxyr, hgb, creat, and mspike. Kept sex as its original factor and the other predictors numeric, without conversion.

See also