Learn R Programming

hesim (version 0.5.5)

params_surv_list: Parameters of a list of survival models

Description

Create a list containing the parameters of multiple fitted parametric survival models.

Usage

params_surv_list(...)

Value

An object of class params_surv_list, which is a list containing params_surv

objects.

Arguments

...

Objects of class params_surv, which can be named.

See Also

create_params()

Examples

Run this code
n <- 5
params <- params_surv_list(
  # Model for progression free survival
  pfs = params_surv(
    coefs = list(
      rate = data.frame(intercept = rnorm(n, log(.5), .5),
                        new_strategy = rnorm(n, log(.8), .1))
   ),
    dist = "exp"
  ),
 
  # Model for overall survival
  os = params_surv(
    coefs = list(
      rate = data.frame(intercept = rnorm(n, log(.3) , .5))
    ),
    dist = "exp"
  )
)
summary(params)
params

Run the code above in your browser using DataLab