From 48c463680b51fa767b4cd7bd62865f192d0354ac Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Sat, 6 Feb 2021 18:30:32 +0100 Subject: Reintroduce interface to saemix Also after the upgrade from buster to bullseye of my local system, some test results for saemix have changed. --- docs/dev/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/dev/index.html') diff --git a/docs/dev/index.html b/docs/dev/index.html index a4399963..8888633d 100644 --- a/docs/dev/index.html +++ b/docs/dev/index.html @@ -38,7 +38,7 @@ mkin - 0.9.50.4 + 1.0.1.9000 @@ -147,7 +147,7 @@
  • Three different error models can be selected using the argument error_model to the mkinfit function.
  • The ‘variance by variable’ error model which is often fitted using Iteratively Reweighted Least Squares (IRLS) should now be specified as error_model = "obs".
  • A two-component error model similar to the one proposed by Rocke and Lorenzato can be selected using the argument error_model = "tc".
  • -
  • Nonlinear mixed-effects models can be created from fits of the same degradation model to different datasets for the same compound by using the nlme.mmkin method.
  • +
  • Nonlinear mixed-effects models can be created from fits of the same degradation model to different datasets for the same compound by using the nlme.mmkin method. Note that the convergence of the nlme fits depends on the quality of the data. Convergence is better for simple models and data for many groups (e.g. soils).
  • -- cgit v1.2.1 From 3dde3b95f1db925c89cd04d19f95c6fc9f68f473 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Sat, 13 Feb 2021 12:40:44 +0100 Subject: Update docs --- docs/dev/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/dev/index.html') diff --git a/docs/dev/index.html b/docs/dev/index.html index 8888633d..ff9b201f 100644 --- a/docs/dev/index.html +++ b/docs/dev/index.html @@ -38,7 +38,7 @@ mkin - 1.0.1.9000 + 1.0.2.9000
    -- cgit v1.2.1 From b9be19af5e3085216d0cd5af439332f631fa8b92 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Mon, 15 Feb 2021 17:36:12 +0100 Subject: Fully rebuild docs, rerun tests and check --- docs/dev/index.html | 45 ++++++++++++++++++++++++++++++++++++--------- 1 file changed, 36 insertions(+), 9 deletions(-) (limited to 'docs/dev/index.html') diff --git a/docs/dev/index.html b/docs/dev/index.html index ff9b201f..57328658 100644 --- a/docs/dev/index.html +++ b/docs/dev/index.html @@ -38,7 +38,7 @@ mkin - 1.0.2.9000 + 1.0.3.9000 @@ -133,23 +133,40 @@

    Features

    +
    +

    +General

    • Highly flexible model specification using mkinmod, including equilibrium reactions and using the single first-order reversible binding (SFORB) model, which will automatically create two latent state variables for the observed variable.
    • -
    • As of version 0.9-39, fitting of several models to several datasets, optionally in parallel, is supported, see for example plot.mmkin.
    • Model solution (forward modelling) in the function mkinpredict is performed either using the analytical solution for the case of parent only degradation, an eigenvalue based solution if only simple first-order (SFO) or SFORB kinetics are used in the model, or using a numeric solver from the deSolve package (default is lsoda).
    • -
    • If a C compiler is installed, the kinetic models are compiled from automatically generated C code, see vignette compiled_models. The autogeneration of C code was inspired by the ccSolve package. Thanks to Karline Soetaert for her work on that.
    • -
    • By default, kinetic rate constants and kinetic formation fractions are transformed internally using transform_odeparms so their estimators can more reasonably be expected to follow a normal distribution. This has the side effect that no constraints are needed in the optimisation. Thanks to René Lehmann for the nice cooperation on this, especially the isometric log-ratio transformation that is now used for the formation fractions.
    • -
    • A side effect of this is that when parameter estimates are backtransformed to match the model definition, confidence intervals calculated from standard errors are also backtransformed to the correct scale, and will not include meaningless values like negative rate constants or formation fractions adding up to more than 1, which can not occur in a single experiment with a single defined radiolabel position.
    • The usual one-sided t-test for significant difference from zero is nevertheless shown based on estimators for the untransformed parameters.
    • Summary and plotting functions. The summary of an mkinfit object is in fact a full report that should give enough information to be able to approximately reproduce the fit with other tools.
    • The chi-squared error level as defined in the FOCUS kinetics guidance (see below) is calculated for each observed variable.
    • -
    • When a metabolite decline phase is not described well by SFO kinetics, SFORB kinetics can be used for the metabolite.
    • -
    • Three different error models can be selected using the argument error_model to the mkinfit function.
    • The ‘variance by variable’ error model which is often fitted using Iteratively Reweighted Least Squares (IRLS) should now be specified as error_model = "obs".
    • -
    • A two-component error model similar to the one proposed by Rocke and Lorenzato can be selected using the argument error_model = "tc".
    • +
    +
    +
    +

    +Unique in mkin

    +
      +
    • Three different error models can be selected using the argument error_model to the mkinfit function. A two-component error model similar to the one proposed by Rocke and Lorenzato can be selected using the argument error_model = "tc".
    • +
    • Model comparisons using the Akaike Information Criterion (AIC) are supported which can also be used for non-constant variance. In such cases the FOCUS chi-squared error level is not meaningful.
    • +
    • By default, kinetic rate constants and kinetic formation fractions are transformed internally using transform_odeparms so their estimators can more reasonably be expected to follow a normal distribution.
    • +
    • When parameter estimates are backtransformed to match the model definition, confidence intervals calculated from standard errors are also backtransformed to the correct scale, and will not include meaningless values like negative rate constants or formation fractions adding up to more than 1, which cannot occur in a single experiment with a single defined radiolabel position.
    • +
    • When a metabolite decline phase is not described well by SFO kinetics, SFORB kinetics can be used for the metabolite. Mathematically, the SFORB model is equivalent to the DFOP model used by other tools for biphasic metabolite curves. However, the SFORB model has the advantage that there is a mechanistic interpretation of the model parameters.
    • Nonlinear mixed-effects models can be created from fits of the same degradation model to different datasets for the same compound by using the nlme.mmkin method. Note that the convergence of the nlme fits depends on the quality of the data. Convergence is better for simple models and data for many groups (e.g. soils).
    +
    +

    +Performance

    +
      +
    • Parallel fitting of several models to several datasets is supported, see for example plot.mmkin.
    • +
    • If a C compiler is installed, the kinetic models are compiled from automatically generated C code, see vignette compiled_models. The autogeneration of C code was inspired by the ccSolve package. Thanks to Karline Soetaert for her work on that.
    • +
    • Even if no compiler is installed, many degradation models still give very good performance, as current versions of mkin also have analytical solutions for some models with one metabolite, and if SFO or SFORB are used for the parent compound, Eigenvalue based solutions of the degradation model are available.
    • +
    +
    +

    GUI

    @@ -158,7 +175,7 @@

    News

    -

    There is a ChangeLog, for the latest CRAN release and one for the github master branch.

    +

    There is a list of changes for the latest CRAN release and one for each github branch, e.g. the main branch.

    @@ -171,6 +188,16 @@

    In 2011, Bayer Crop Science started to distribute an R based successor to KinGUI named KinGUII whose R code is based on mkin, but which added, among other refinements, a closed source graphical user interface (GUI), iteratively reweighted least squares (IRLS) optimisation of the variance for each of the observed variables, and Markov Chain Monte Carlo (MCMC) simulation functionality, similar to what is available e.g. in the FME package.

    Somewhat in parallel, Syngenta has sponsored the development of an mkin and KinGUII based GUI application called CAKE, which also adds IRLS and MCMC, is more limited in the model formulation, but puts more weight on usability. CAKE is available for download from the CAKE website, where you can also find a zip archive of the R scripts derived from mkin, published under the GPL license.

    Finally, there is KineticEval, which contains a further development of the scripts used for KinGUII, so the different tools will hopefully be able to learn from each other in the future as well.

    +

    Thanks to René Lehmann, formerly working at the Umweltbundesamt, for the nice cooperation cooperation on parameter transformations, especially the isometric log-ratio transformation that is now used for formation fractions in case there are more than two transformation targets.

    +

    Many inspirations for improvements of mkin resulted from doing kinetic evaluations of degradation data for my clients while working at Harlan Laboratories and at Eurofins Regulatory AG, and now as an independent consultant.

    +

    Funding was received from the Umweltbundesamt in the course of the projects

    +
      +
    • Grant Number 112407 (Testing and validation of modelling software as an alternative to ModelMaker 4.0, 2014-2015)
    • +
    • Project Number 56703 (Optimization of gmkin for routine use in the Umweltbundesamt, 2015)
    • +
    • Project Number 112407 (Testing the feasibility of using an error model according to Rocke and Lorenzato for more realistic parameter estimates in the kinetic evaluation of degradation data, 2018-2019)
    • +
    • Project Number 120667 (Development of objective criteria for the evaluation of the visual fit in the kinetic evaluation of degradation data, 2019-2020)
    • +
    • Project 146839 (Checking the feasibility of using mixed-effects models for the derivation of kinetic modelling parameters from degradation studies, 2020-2021)
    • +

    -- cgit v1.2.1 From c73b2f30ec836c949885784ab576e814eb8070a9 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Tue, 9 Mar 2021 17:35:47 +0100 Subject: Some improvements for borderline cases - fit_with_errors for saem() - test_log_parms for mean_degparms() and saem() --- docs/dev/index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs/dev/index.html') diff --git a/docs/dev/index.html b/docs/dev/index.html index 57328658..d1fa1a52 100644 --- a/docs/dev/index.html +++ b/docs/dev/index.html @@ -38,7 +38,7 @@ mkin - 1.0.3.9000 + 1.0.4.9000

    @@ -192,11 +192,12 @@

    Many inspirations for improvements of mkin resulted from doing kinetic evaluations of degradation data for my clients while working at Harlan Laboratories and at Eurofins Regulatory AG, and now as an independent consultant.

    Funding was received from the Umweltbundesamt in the course of the projects

      -
    • Grant Number 112407 (Testing and validation of modelling software as an alternative to ModelMaker 4.0, 2014-2015)
    • +
    • Project Number 27452 (Testing and validation of modelling software as an alternative to ModelMaker 4.0, 2014-2015)
    • Project Number 56703 (Optimization of gmkin for routine use in the Umweltbundesamt, 2015)
    • +
    • Project Number 92570 (Update of Project Number 27452, 2017-2018)
    • Project Number 112407 (Testing the feasibility of using an error model according to Rocke and Lorenzato for more realistic parameter estimates in the kinetic evaluation of degradation data, 2018-2019)
    • Project Number 120667 (Development of objective criteria for the evaluation of the visual fit in the kinetic evaluation of degradation data, 2019-2020)
    • -
    • Project 146839 (Checking the feasibility of using mixed-effects models for the derivation of kinetic modelling parameters from degradation studies, 2020-2021)
    • +
    • Project Number 146839 (Checking the feasibility of using mixed-effects models for the derivation of kinetic modelling parameters from degradation studies, 2020-2021)
    -- cgit v1.2.1 From 0c9b2f0e3c8ce65cb790c9e048476784cbbea070 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Fri, 11 Jun 2021 11:14:45 +0200 Subject: Finished 'summary.nlmixr.mmkin', checks, docs --- docs/dev/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/dev/index.html') diff --git a/docs/dev/index.html b/docs/dev/index.html index d1fa1a52..6e3fa6e1 100644 --- a/docs/dev/index.html +++ b/docs/dev/index.html @@ -38,7 +38,7 @@ mkin - 1.0.4.9000 + 1.0.5
    -- cgit v1.2.1 From 0b754ffa91b9496bdd2f892cf3ca2bd887028dea Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Tue, 27 Jul 2021 18:22:01 +0200 Subject: Fix dimethenamid vignette problems and update docs --- docs/dev/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/dev/index.html') diff --git a/docs/dev/index.html b/docs/dev/index.html index 6e3fa6e1..8049b3a1 100644 --- a/docs/dev/index.html +++ b/docs/dev/index.html @@ -38,7 +38,7 @@ mkin - 1.0.5 + 1.1.0 -- cgit v1.2.1 From 137612045c23198f10d6e8612c32e266c2a6c00e Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 29 Jul 2021 12:17:56 +0200 Subject: Go back to 1.0.x version, update docs --- docs/dev/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'docs/dev/index.html') diff --git a/docs/dev/index.html b/docs/dev/index.html index 8049b3a1..ddfce971 100644 --- a/docs/dev/index.html +++ b/docs/dev/index.html @@ -38,7 +38,7 @@ mkin - 1.1.0 + 1.0.5 @@ -206,6 +206,11 @@ + + + -- cgit v1.2.1 From 1bef803fc9d83989352f1b029d83e66918a0e58a Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 29 Jul 2021 12:37:27 +0200 Subject: Add citations to the DESCRIPTION --- docs/dev/index.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'docs/dev/index.html') diff --git a/docs/dev/index.html b/docs/dev/index.html index ddfce971..8b0b2386 100644 --- a/docs/dev/index.html +++ b/docs/dev/index.html @@ -16,9 +16,14 @@ 2014). Includes a function for conveniently defining differential equation models, model solution based on eigenvalues if possible or using numerical solvers. If a C compiler (on windows: Rtools) is installed, differential - equation models are solved using automatically generated C functions. Please - note that no warranty is implied for correctness of results or fitness for a - particular purpose."> + equation models are solved using automatically generated C functions. + Heteroscedasticity can be taken into account using variance by variable or + two-component error models as described by Ranke and Meinecke (2018) + <doi:10.3390/environments6120124>. Interfaces to several nonlinear + mixed-effects model packages are available, some of which are described by + Ranke et al. (2021) <doi:10.3390/environments8080071>. Please note that no + warranty is implied for correctness of results or fitness for a particular + purpose.">
    +Ranke J, Wöltjen J, Schmidt J, and Comets E (2021) Taking kinetic evaluations of degradation data to the next level with nonlinear mixed-effects models. Environments 8 (8) 71 doi:10.3390/environments8080071 +
    Ranke J, Meinecke S (2019) Error Models for the Kinetic Evaluation of Chemical Degradation Data Environments 6 (12) 124 doi:10.3390/environments6120124