Learn R Programming

hesim (version 0.5.5)

flexsurvreg_list: List of flexsurvreg objects

Description

Combine flexsurvreg objects into a list.

Usage

flexsurvreg_list(...)

Value

An object of class flexsurvreg_list.

Arguments

...

Objects of class flexsurvreg, which can be named.

Examples

Run this code
 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)

Run the code above in your browser using DataLab