Skip to contents

A competing risks task for the transplant 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("transplant")
tsk("transplant")

Meta Information

  • Task type: “cmprsk”

  • Dimensions: 793x6

  • Properties: -

  • Has Missings: FALSE

  • Target: “time”, “event”

  • Features: “abo”, “age”, “sex”, “year”

Competing risks scenario

The competing events are mutually exclusive exit-events from the liver transplant waiting list: death (cause 1), liver transplantation (cause 2), or withdrawal (cause 3), with 0 indicating censoring. This analysis reduces a potentially more complex multi-state process to the first outcome that happens to patients on the waiting list. Patients may die after transplantation or withdrawal, but subsequent events are not considered.

Pre-processing

  • Kept only complete cases (no missing values).

  • Removed four observations with zero follow-up time.

  • Renamed futime to time, preserving the original values in days.

  • Retained numeric predictors age and year and the existing factors sex and abo, without conversion.

  • Replaced the factor event with integer codes using its labels: censored = 0, death = 1, ltx = 2 (liver transplantation), and withdraw = 3.

See also

Other Task: TaskCompRisks, mlr_tasks_hoel, mlr_tasks_mgus2, mlr_tasks_pbc