From fbfffc0e47171cac03797340fde697a75a5afd61 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Mon, 26 Nov 2018 11:44:27 +0100 Subject: Add AIC method for mmkin column objects Static documentation rebuilt by pkgdown --- docs/reference/AIC.mmkin.html | 211 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 211 insertions(+) create mode 100644 docs/reference/AIC.mmkin.html (limited to 'docs/reference/AIC.mmkin.html') diff --git a/docs/reference/AIC.mmkin.html b/docs/reference/AIC.mmkin.html new file mode 100644 index 00000000..a2ce9885 --- /dev/null +++ b/docs/reference/AIC.mmkin.html @@ -0,0 +1,211 @@ + + + + + + + + +Calculated the AIC for a column of an mmkin object — AIC.mmkin • mkin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
+ +
+
+ + +
+ +

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)) + AIC(f[1, "FOCUS A"]) # We get a single number for a single fit
#> [1] 55.32452
+ # 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"])
#> df AIC +#> SFO 3 55.32452 +#> FOMC 4 57.32477 +#> DFOP 5 59.32452
AIC(f[, "FOCUS A"], k = 0) # If we do not penalize additional parameters, we get nearly the same
#> df AIC +#> SFO 3 49.32452 +#> FOMC 4 49.32477 +#> DFOP 5 49.32452
+ # For FOCUS C, the more complex models fit better + AIC(f[, "FOCUS C"])
#> df AIC +#> SFO 3 59.84675 +#> FOMC 4 44.70584 +#> DFOP 5 29.08369
+
+ +
+ + +
+ + + + + + -- cgit v1.2.1