Learn R Programming

mkin (version 1.2.6)

update.mkinfit: Update an mkinfit model with different arguments

Description

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.

Usage

# 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

Run this code
if (FALSE) {
fit <- mkinfit("SFO", subset(FOCUS_2006_D, value != 0), quiet = TRUE)
parms(fit)
plot_err(fit)
fit_2 <- update(fit, error_model = "tc")
parms(fit_2)
plot_err(fit_2)
}

Run the code above in your browser using DataLab