Description Details Dictionary Super classes Methods References See Also Examples
A mlr3proba::LearnerSurv implementing survreg
from package
survival.
Calls survival::survreg()
.
This learner allows you to choose a distribution and a model form to compose a predicted survival probability distribution. Note: Just because any combination of distribution and model form is possible, this does not mean it will necessarily be sensible or interpretable.
The internal predict method is implemented in this package as our implementation is more
efficient for composition to distributions than survival::predict.survreg()
.
lp
is predicted using the formula lp = Xβ where X are the variables in the test
data set and β are the fitted coefficients.
The distribution distr
is composed using the lp
and specifying a model form in the
type
hyper-parameter. These are as follows, with respective survival functions,
Accelerated Failure Time (aft
)
S(t) = S0(t/exp(lp))
Proportional Hazards (ph
)
S(t) = S0(t)^exp(lp)
Proportional Odds (po
)
S(t) = S0(t) / [exp(-lp) + S0(t) (1-exp(-lp))]
where S0 is the estimated baseline survival distribution (in this case with a given parametric form), and lp is the predicted linear predictor.
This Learner can be instantiated via the dictionary
mlr_learners or with the associated sugar function lrn()
:
1 2 | mlr_learners$get("surv.nelson")
lrn("surv.nelson")
|
mlr3::Learner
-> mlr3proba::LearnerSurv
-> LearnerSurvParametric
new()
Creates a new instance of this R6 class.
LearnerSurvParametric$new()
clone()
The objects of this class are cloneable with this method.
LearnerSurvParametric$clone(deep = FALSE)
deep
Whether to make a deep clone.
Kalbfleisch, J. D., & Prentice, R. L. (2011). The statistical analysis of failure time data (Vol. 360). John Wiley & Sons.
Dictionary of Learners: mlr3::mlr_learners
1 2 3 4 5 6 7 | if (requireNamespace("survival")) {
learner = mlr3::lrn("surv.nelson")
print(learner)
# available parameters:
learner$param_set$ids()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.