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")

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 [strata()], please see [flexsurv::flexsurvspline()] for alternative specifications.


Case weights


Saving fitted model objects


References



Try the parsnip package in your browser

Any scripts or data that you put into this service are public.

parsnip documentation built on Aug. 18, 2023, 1:07 a.m.