fc_combine {failCompare} | R Documentation |
A combination of multiple failure time model objects into a list of models.
fc_combine(mod_ls)
mod_ls |
list of fc_mods |
A convenience function for combining model failure time model objecs fc_obj
into a failure model
list object fc_list
. Lists that include the "Kaplan-Meier" model or duplicates are not allowed. Model lists with different censoring selections are also not allowed.
fc_list object
Li, T., and Anderson, J.J. 2009. The vitality model: a way to understand population survival and demographic heterogeneity. Theoretical Population Biology 76(2):118-131.
Li, T., and Anderson, J.J. 2013. Shaping human mortality patterns through intrinsic and extrinsic vitality processes. Demographic Research 28:341-372.
### Load example dataframe data(sockeye) taglife=sockeye[,"days"] #define vector of times ### Fit a 2-parameter Weibull model weib_mod=fc_fit(time=taglife,model="weibull") ### Fit a 4-parameter Vitality 2013 model vit_mod=fc_fit(time=taglife,model="vitality.4p") # Combine two "fc_obj" objects into a model list of class "fc_list" fc_combine(mod_ls = list(weib_mod,vit_mod))