A competing risks task for the pbc 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: 276x19
Properties: -
Has Missings:
FALSETarget: “time”, “status”
Features: “age”, “albumin”, “alk.phos”, “ascites”, “ast”, “bili”, “chol”, “copper”, “edema”, “hepato”, “platelet”, “protime”, “sex”, “spiders”, “stage”, “trig”, “trt”
Competing risks scenario
Patients with primary biliary cholangitis are followed until liver transplantation (cause 1), death without prior transplantation (cause 2), or censoring (0). Transplantation and death before transplantation are mutually exclusive first events. This analysis reduces a potentially more complex multi-state process to its first event: patients may die after transplantation, but subsequent deaths are not considered.
Pre-processing
Removed column
id.Kept only complete cases (no missing values).
Column
agehas been converted tointeger.Columns
trt,stage,hepato,edemaandasciteshave been converted tofactors.Column
trthas levelsDpenicillmainandplaceboinstead of 1 and 2.Column
statushas 0 for censored, 1 for transplant and 2 for death.
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_transplant
