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():
Meta Information
Task type: “cmprsk”
Dimensions: 1338x8
Properties: -
Has Missings:
FALSETarget: “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 == 0anddeath == 1), and 0 for censoring (pstat == 0anddeath == 0). Note that 9 subjects have progression and death recorded in the same month; these are classified as progression (cause 1).Removed
idand the original outcome columnsptime,pstat,futime, anddeath.Retained features
age,sex,dxyr,hgb,creat, andmspike. Keptsexas its original factor and the other predictors numeric, without conversion.
See also
Chapter in the mlr3book: https://mlr3book.mlr-org.com/chapters/chapter2/data_and_basic_modeling.html
as.data.table(mlr_tasks)for a table of available Tasks in the running session
Other Task:
TaskCompRisks,
mlr_tasks_hoel,
mlr_tasks_pbc,
mlr_tasks_transplant
