
Liver Transplant Waiting List Competing Risks Task
Source:R/Task_transplant.R
mlr_tasks_transplant.RdA 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():
Meta Information
Task type: “cmprsk”
Dimensions: 793x6
Properties: -
Has Missings:
FALSETarget: “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
futimetotime, preserving the original values in days.Retained numeric predictors
ageandyearand the existing factorssexandabo, without conversion.Replaced the factor
eventwith integer codes using its labels:censored= 0,death= 1,ltx= 2 (liver transplantation), andwithdraw= 3.
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_mgus2,
mlr_tasks_pbc