From 9ac853c7ceece333099021974025d07e75be2b33 Mon Sep 17 00:00:00 2001
From: Johannes Ranke Fit one or more kinetic models with one or more state variables to one or
more datasets
-
+ Source: R/mmkin.R
mmkin.Rd
A two-dimensional array
of mkinfit
- objects that can be indexed using the model names for the first index (row index)
- and the dataset names for the second index (column index).
[.mmkin
for subsetting, plot.mmkin
for
- plotting.
- @@ -251,7 +252,7 @@ for parallel execution. -- cgit v1.2.1@@ -205,42 +213,35 @@ for parallel execution. names(datasets) <- paste("Dataset", 1:3) time_default <- system.time(fits.0 <- mmkin(models, datasets, quiet = TRUE)) -time_1 <- system.time(fits.4 <- mmkin(models, datasets, cores = 1, quiet = TRUE)) - +time_1 <- system.time(fits.4 <- mmkin(models, datasets, cores = 1, quiet = TRUE))#> Warning: Optimisation did not converge: +#> false convergence (8)time_default#> User System verstrichen -#> 16.471 0.352 5.654time_1#> User System verstrichen -#> 19.578 0.000 19.590+#> 4.370 0.401 1.265time_1#> User System verstrichen +#> 5.000 0.008 5.011#> $ff #> parent_M1 parent_sink M1_M2 M1_sink -#> 0.7340480 0.2659520 0.7505686 0.2494314 +#> 0.7340478 0.2659522 0.7505691 0.2494309 #> #> $distimes #> DT50 DT90 -#> parent 0.8777689 2.915885 -#> M1 2.3257452 7.725958 -#> M2 33.7200890 112.015711 +#> parent 0.8777688 2.915885 +#> M1 2.3257466 7.725963 +#> M2 33.7200800 112.015681 #># Use double brackets to extract a single mkinfit object, which will be plotted # by plot.mkinfit and can be plotted using plot_sep -plot(fits.0[[1, 1]], sep_obs = TRUE, show_residuals = TRUE, show_errmin = TRUE)plot_sep(fits.0[[1, 1]]) +plot(fits.0[[1, 1]], sep_obs = TRUE, show_residuals = TRUE, show_errmin = TRUE)plot_sep(fits.0[[1, 1]]) # Plotting with mmkin (single brackets, extracting an mmkin object) does not # allow to plot the observed variables separately -plot(fits.0[1, 1])# }