A mlr3::TaskGenerator calling simsurv::simsurv() from package simsurv.

This generator currently only exposes a small subset of the flexibility of simsurv, and just creates a small data set with the following numerical covariates:

• treatment: Bernoulli distributed with log hazard ratio -0.5.

• height: Normally distributed with log hazard ratio 1.

• weight: normally distributed with log hazard ratio 0.

See simsurv::simsurv() for an explanation of the hyperparameters.

## Construction

TaskGeneratorSimsurv$new() mlr_task_generators$get("simsurv")
tgen("simsurv")


generator = mlr3::mlr_task_generators$get("simsurv") task = generator$generate(20)
#> 6:  1.018092      1 158.1131         1 75.14025