- Using StanHeaders package function `stanFunction()` - Requires writing air2water differential equation in C++ code (using Rccp) - e.g. https://www.jchau.org/2022/01/24/automatic-differentiation-in-r-with-stan-math/#fnref6 - e.g. https://cran.r-project.org/web/packages/StanHeaders/vignettes/stanmath.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
stanFunction()