fc_combine {failCompare}R Documentation

Combination of multiple failure time model objects into a list of models

Description

A combination of multiple failure time model objects into a list of models.

Usage

fc_combine(mod_ls)

Arguments

mod_ls

list of fc_mods

Details

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.

Value

fc_list object

References

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.

See Also

fc_select and fc_fit

Examples


### 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))


[Package failCompare version 1.0.0 Index]