#| child: aaa.Rmd
#| include: false

r descr_models("survival_reg", "flexsurvspline")

Tuning Parameters

This model has one engine-specific tuning parameter:

Translation from parsnip to the original package

r uses_extension("survival_reg", "flexsurvspline", "censored regression")

#| label: flexsurvspline-creg
library(censored)

survival_reg() |> 
  set_engine("flexsurvspline") |> 
  set_mode("censored regression") |> 
  translate()

Other details

The main interface for this model uses the formula method since the model specification typically involved the use of [survival::Surv()].

For this engine, stratification cannot be specified via [survival::strata()], please see [flexsurv::flexsurvspline()] for alternative specifications.

#| child: template-survival-mean.Rmd

Case weights

#| child: template-uses-case-weights.Rmd

Saving fitted model objects

#| child: template-butcher.Rmd

References



tidymodels/parsnip documentation built on June 2, 2025, 8:10 a.m.