Combine flexsurvreg
objects into a list.
flexsurvreg_list(...)
Objects of class flexsurvreg
, which can be named.
An object of class flexsurvreg_list
.
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"