part_survs_from_surv_inputs: Convert saved fits to partitioned survival objects

Description Usage Arguments Details Value

View source: R/part_surv.R

Description

Convert saved fits to partitioned survival objects

Usage

1
part_survs_from_surv_inputs(surv_inputs, state_names)

Arguments

surv_inputs

a list of matrices of flexsurvreg objects, for example the first element of the output of survival_from_data.

state_names

names of states of the model

Details

surv_inputs is a tibble with columns type (PFS or OS, not case sensitive), treatment, set_name (for data subsets), dist (for survival distribution assumptions), fit (for the fitted survival object) and set_def (how the subset of data was defined, just to keep it around)

Value

a tibble of partitioned survival objects, similar to the original tibble of survival fits, with all the columns except type and fit, and a new column part_surv.


heemod documentation built on July 8, 2020, 6:55 p.m.