mlr_learners_surv.flexible: Survival Flexible Parametric Spline Learner

mlr_learners_surv.flexibleR Documentation

Survival Flexible Parametric Spline Learner

Description

Flexible parametric spline learner. Calls flexsurv::flexsurvspline() from flexsurv.

Details

This learner returns two prediction types:

  1. lp: a vector of linear predictors (relative risk scores), for each test observation. Calculated using flexsurv::flexsurvspline() and the estimated coefficients. For fitted coefficients, \beta = (\beta_0,...,\beta_P), and covariates X^T = (X_0,...,X_P)^T, where X_0 is a column of 1s, the linear predictor (lp) is lp = \beta X.

  2. distr: a survival matrix in two dimensions, where observations are represented in rows and time points in columns. Calculated using predict.flexsurvreg()

Dictionary

This Learner can be instantiated via the dictionary mlr_learners or with the associated sugar function lrn():

mlr_learners$get("surv.flexible")
lrn("surv.flexible")

Meta Information

Parameters

Id Type Default Levels Range
bhazard untyped - -
k integer 0 [0, \infty)
knots untyped - -
bknots untyped - -
scale character hazard hazard, odds, normal -
timescale character log log, identity -
inits untyped - -
rtrunc untyped - -
fixedpars untyped - -
cl numeric 0.95 [0, 1]
maxiter integer 30 (-\infty, \infty)
rel.tolerance numeric 1e-09 (-\infty, \infty)
toler.chol numeric 1e-10 (-\infty, \infty)
debug integer 0 [0, 1]
outer.max integer 10 (-\infty, \infty)

Initial parameter values

  • k:

    • Actual default: 0

    • Initial value: 1

    • Reason for change: The default value of 0 is equivalent to, and a much less efficient implementation of, LearnerSurvParametric.

Super classes

mlr3::Learner -> mlr3proba::LearnerSurv -> LearnerSurvFlexible

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage
LearnerSurvFlexible$new()

Method clone()

The objects of this class are cloneable with this method.

Usage
LearnerSurvFlexible$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Author(s)

RaphaelS1

References

Royston, Patrick, Parmar, KB M (2002). “Flexible parametric proportional-hazards and proportional-odds models for censored survival data, with application to prognostic modelling and estimation of treatment effects.” Statistics in medicine, 21(15), 2175–2197.

See Also

Examples

learner = mlr3::lrn("surv.flexible")
print(learner)

# available parameters:
learner$param_set$ids()

mlr-org/mlr3extralearners documentation built on April 13, 2024, 5:25 a.m.