View source: R/survival_define.R
define_surv_fit | R Documentation |
Define a fitted survival models with a Kaplan-Meier estimator or parametric distributions
define_surv_fit(x)
x |
a survfit or flexsurvreg object |
A surv_object
object.
library(survival)
define_surv_fit(
survfit(Surv(time, status) ~ 1, data = colon)
)
define_surv_fit(
flexsurv::flexsurvreg(Surv(time, status) ~ 1, data = colon, dist = "exp")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.