Description Format Construction Fields Methods Examples
This task specializes mlr3::Task and mlr3::TaskSupervised for right-censored survival problems. The target column is assumed to be a factor. Predefined tasks are stored in mlr3::mlr_tasks.
The task_type
is set to "surv"
.
R6::R6Class object inheriting from Task/TaskSupervised.
1 |
id
:: character(1)
Name of the task.
backend
:: DataBackend
time
:: numeric()
Event times.
status
:: integer()
| logical()
Event indicator. "0"/FALSE
means alive (no event), "1"/TRUE
means dead (event).
See mlr3::TaskSupervised.
All methods from mlr3::TaskSupervised, and additionally:
survfit(strata = character())
character()
-> survival::survfit()
Creates a survival::survfit()
object for the survival times.
Argument strata
can be used to stratify into multiple groups.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.