Provides a convenient way to compare different kineti models fitted to the same dataset.

# S3 method for mmkin
AIC(object, ..., k = 2)

Arguments

object

An object of class mmkin, containing only one column.

For compatibility with the generic method

k

As in the generic method

Value

As in the generic method (a numeric value for single fits, or a dataframe if there are several fits in the column).

Examples

f <- mmkin(c("SFO", "FOMC", "DFOP"), list("FOCUS A" = FOCUS_2006_A, "FOCUS C" = FOCUS_2006_C))
#> Error in mmkin(c("SFO", "FOMC", "DFOP"), list(`FOCUS A` = FOCUS_2006_A, `FOCUS C` = FOCUS_2006_C)): konnte Funktion "mmkin" nicht finden
AIC(f[1, "FOCUS A"]) # We get a single number for a single fit
#> Error in AIC(f[1, "FOCUS A"]): Objekt 'f' nicht gefunden
# For FOCUS A, the models fit almost equally well, so the higher the number # of parameters, the higher (worse) the AIC AIC(f[, "FOCUS A"])
#> Error in AIC(f[, "FOCUS A"]): Objekt 'f' nicht gefunden
AIC(f[, "FOCUS A"], k = 0) # If we do not penalize additional parameters, we get nearly the same
#> Error in AIC(f[, "FOCUS A"], k = 0): Objekt 'f' nicht gefunden
# For FOCUS C, the more complex models fit better AIC(f[, "FOCUS C"])
#> Error in AIC(f[, "FOCUS C"]): Objekt 'f' nicht gefunden