mlr_tasks_pbc | R Documentation |
A survival task for the pbc data set.
R6::R6Class inheriting from TaskSurv.
This Task can be instantiated via the dictionary mlr_tasks or with the associated sugar function tsk()
:
mlr_tasks$get("pbc") tsk("pbc")
Task type: “surv”
Dimensions: 276x19
Properties: -
Has Missings: FALSE
Target: “time”, “status”
Features: “age”, “albumin”, “alk.phos”, “ascites”, “ast”, “bili”, “chol”, “copper”, “edema”, “hepato”, “platelet”, “protime”, “sex”, “spiders”, “stage”, “trig”, “trt”
Removed column id
.
Kept only complete cases (no missing values).
Column age
has been converted to integer
.
Columns trt
, stage
, hepato
, edema
and ascites
have been converted
to factor
s.
Column trt
has levels Dpenicillmain
and placebo
instead of 1 and 2.
Column status
has 1 for death and 0 for censored or transplant.
Chapter in the mlr3book: https://mlr3book.mlr-org.com/chapters/chapter2/data_and_basic_modeling.html
Dictionary of Tasks: mlr3::mlr_tasks
as.data.table(mlr_tasks)
for a table of available Tasks in the running session
Other Task:
TaskDens
,
TaskSurv
,
mlr_tasks_actg
,
mlr_tasks_faithful
,
mlr_tasks_gbcs
,
mlr_tasks_gbsg
,
mlr_tasks_grace
,
mlr_tasks_lung
,
mlr_tasks_mgus
,
mlr_tasks_precip
,
mlr_tasks_rats
,
mlr_tasks_veteran
,
mlr_tasks_whas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.