Combine flexsurvreg objects into a list.

flexsurvreg_list(...)

Arguments

...

Objects of class flexsurvreg, which can be named.

Value

An object of class flexsurvreg_list.

Examples

 library("flexsurv")
 fit1 <- flexsurv::flexsurvreg(formula = Surv(futime, fustat) ~ 1, data = ovarian, dist = "weibull")
 fit2 <- flexsurv::flexsurvreg(formula = Surv(futime, fustat) ~ 1, data = ovarian, dist = "exp")
 fsreg_list <- flexsurvreg_list(wei = fit1, exp = fit2)
 class(fsreg_list)
#> [1] "flexsurvreg_list"