construct a survival object from tabular specification
Source:R/part_surv.R
construct_part_surv_tib.Rd
construct a survival object from tabular specification
Usage
construct_part_surv_tib(surv_def, ref, state_names, env = new.env())
Value
a list with one element for each strategy. Each element
is in turn a part_surv
object, a list with two elements,
pfs and os. And those
elements are survival objects of various kinds, with the
commonality that they can be used in compute_surv()
.
Details
This function is meant to be used only from within tabular_input.R. It won't work well otherwise, in that the environment is unlikely to have what you need.
columns of surv_def: .strategy, .type, .subset, dist, until where dist can be either the name of a distribution along with parameters, or a reference to a fit for example: fit('exp') or exp(rate = 0.5)