Create a partitioned survival regression object of class partsurvfit. The object contains a list of fitted survival models fit using either flexsurvreg or flexsurvspline (i.e., an object of class flexsurvreg_list) and the data frame used to perform the fit of each model. The same data frame must have been used for each fit.
partsurvfit(object, data)
Arguments
object: An object of class flexsurvreg_list.
data: The data frame used to fit each survival model in object. flexsurvreg.
Returns
Returns an object of class partsurvfit, which is a list containing two elements. The first element, "models", contains the survival models passed to object, and the second element, "data" contains the data frame passed to data.