mkin (version 1.0.3)

nafta: Evaluate parent kinetics using the NAFTA guidance

Description

The function fits the SFO, IORE and DFOP models using mmkin and returns an object of class nafta that has methods for printing and plotting.

Print nafta objects. The results for the three models are printed in the order of increasing model complexity, i.e. SFO, then IORE, and finally DFOP.

Usage

nafta(ds, title = NA, quiet = FALSE, ...)

# S3 method for nafta print(x, quiet = TRUE, digits = 3, ...)

Arguments

ds

A dataframe that must contain one variable called "time" with the time values specified by the time argument, one column called "name" with the grouping of the observed values, and finally one column of observed values called "value".

title

Optional title of the dataset

quiet

Should the evaluation text be shown?

Further arguments passed to mmkin (not for the printing method).

x

An nafta object.

digits

Number of digits to be used for printing parameters and dissipation times.

Value

An list of class nafta. The list element named "mmkin" is the mmkin object containing the fits of the three models. The list element named "title" contains the title of the dataset used. The list element "data" contains the dataset used in the fits.

Examples

Run this code
# NOT RUN {
  nafta_evaluation <- nafta(NAFTA_SOP_Appendix_D, cores = 1)
  print(nafta_evaluation)
  plot(nafta_evaluation)

# }

Run the code above in your browser using DataCamp Workspace