fail_fit: Fitting one or a set of failure time models

Description Usage Arguments Details Value

View source: R/fail_fit.R

Description

Code for fitting a particular tag-life model or models

Usage

1
fail_fit(time, model, rc.value = NULL)

Arguments

time

numeric vector of failure times

model

character vector of specified model(s)

Details

Model fitting routine used to fit one or a set of failure time models

If a single model is specified a "failmod_obj" is created, which can be used to adjust a CJS model in the "ATLAS" package.

If multiple models are specified a "failmod_list" is created containing output from all model fits. This object serves as an input in the fail_rank() function, which ranks the performance of the model using the Skalski and Whitlock (2020) GOF measure.

(named list) "mod_choice" = character object of model name or vector of model names, "fit_vals" = data frame with fitted values for each time and 95% confidence interval "mod_objs" = model objects from various packages: kaplan-meiser ("surival"), vitality models ("vitality") "par_tab" = dataframe of one or more model's parameter estimates

Value

A failure model object, if one model specified OR a failure model list object if multiple models are specified


swhitCBR/failmod documentation built on Dec. 23, 2021, 6:45 a.m.