RTMB-package | R Documentation |
The package 'RTMB' provides a native R interface for a subset of 'TMB' so you can avoid coding in C++. 'RTMB' only affects the 'TMB' function 'MakeADFun' that builds the objective function. Once 'MakeADFun' has been invoked, everything else is exactly the same and models run as fast as if coded in C++.
'RTMB' offers a greatly simplified interface to 'TMB'. The TMB objective function can now be written entirely in R rather than C++ (TMB-interface). In addition, we highlight two new simplifications:
For the most cases, simulation testing can be carried out automatically without the need to add simulation blocks (Simulation).
Also, quantile residuals can be obtained without any essential modifications to the objective function (OSA-residuals).
The introduction vignette describes these basic features - see vignette("RTMB-introduction")
.
In addition to the usual MakeADFun interface, 'RTMB' offers a lower level interface to the AD machinery (MakeTape
). MakeTape replaces the functionality you would normally get in 'TMB' using C++ functors, such as calculating derivatives inside the objective function.
The advanced vignette covers these topics - see vignette("RTMB-advanced")
.
'RTMB' relies heavily on the new AD framework 'TMBad' without which this interface would not be possible.
Kasper Kristensen
Maintainer: kaskr@dtu.dk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.