This function will return an updated mkinfit object. The fitted degradation model parameters from the old fit are used as starting values for the updated fit. Values specified as 'parms.ini' and/or 'state.ini' will override these starting values.

# S3 method for mkinfit
update(object, ..., evaluate = TRUE)

Arguments

object

An mkinfit object to be updated

...

Arguments to mkinfit that should replace the arguments from the original call. Arguments set to NULL will remove arguments given in the original call

evaluate

Should the call be evaluated or returned as a call

Examples

# \dontrun{
fit <- mkinfit("SFO", subset(FOCUS_2006_D, value != 0), quiet = TRUE)
parms(fit)
#>    parent_0    k_parent       sigma 
#> 99.44423885  0.09793574  3.39632469 
plot_err(fit)

fit_2 <- update(fit, error_model = "tc")
parms(fit_2)
#>     parent_0     k_parent    sigma_low     rsd_high 
#> 1.008549e+02 1.005665e-01 3.752222e-03 6.763434e-02 
plot_err(fit_2)

# }