dMod2 is a framework for dynamic modeling and parameter estimation in R. Reaction networks become ODE models compiled to C/C++, with exact first- and second-order sensitivities. Prediction functions, observation functions and parameter transformations are function objects composed into a model of the data, and objective functions are minimized by multi-start fits with a trust-region optimizer. Profile likelihoods, prediction uncertainty, steady states, structural identifiability, mixed-effects models and interfaces to SBML and PEtab are part of the package. The ODE backend is cppDE.
dMod2 succeeds dMod. Migrating from dMod lists what a dMod script has to change.
# install.packages("remotes")
remotes::install_github("dModverse/dMod2")cppDE is installed with it. Models are compiled at run time and need a C++17 compiler (Rtools on Windows) and Python with SymPy, which reticulate provides on first use.
There is no publication for dMod2 yet. citation("dMod2") gives the
paper on the predecessor dMod, the reference for the modeling framework:
Kaschek D, Mader W, Fehling-Kaschek M, Rosenblatt M, Timmer J (2019).
Dynamic Modeling, Parameter Estimation, and Uncertainty Analysis in R.
Journal of Statistical Software, 88(10), 1-32, DOI
10.18637/jss.v088.i10.