| .surv_return {mlr3proba} | R Documentation |
Internal helper function to easily return the correct survival predict types and to automatically coerce a predicted survival probability matrix to a distr6::VectorDistribution of distr6::WeightedDiscrete distributions.
.surv_return( times = NULL, surv = NULL, crank = NULL, lp = NULL, response = NULL )
times |
( |
surv |
( |
crank |
( |
lp |
( |
response |
( |
To avoid complications caused by degenerative distributions, if 0 is not in times, then
this is added as the first time-point and a column of 1s is bound to the left of surv.
Additionally if the final column of surv is not all 1s, then an additional time is added
as max(times) + 1e-3 and a column of 1s is bound to the right of surv.