Package: TMB 1.9.14

Kasper Kristensen

TMB:Template Model Builder: A General Random Effect Tool Inspired by 'ADMB'

With this tool, a user should be able to quickly implement complex random effect models through simple C++ templates. The package combines 'CppAD' (C++ automatic differentiation), 'Eigen' (templated matrix-vector library) and 'CHOLMOD' (sparse matrix routines available from R) to obtain an efficient implementation of the applied Laplace approximation with exact derivatives. Key features are: Automatic sparseness detection, parallelism through 'BLAS' and parallel user templates.

Authors:Kasper Kristensen [aut, cre, cph], Brad Bell [cph], Hans Skaug [ctb], Arni Magnusson [ctb], Casper Berg [ctb], Anders Nielsen [ctb], Martin Maechler [ctb], Theo Michelot [ctb], Mollie Brooks [ctb], Alex Forrence [ctb], Christoffer Moesgaard Albertsen [ctb], Cole Monnahan [ctb]

TMB_1.9.14.tar.gz
TMB_1.9.14.tar.gz(r-4.5-noble)TMB_1.9.14.tar.gz(r-4.4-noble)
TMB_1.9.14.tgz(r-4.4-emscripten)TMB_1.9.14.tgz(r-4.3-emscripten)
TMB.pdf |TMB.html
TMB/json (API)
NEWS

# InstallTMB in R:
install.packages('TMB',repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/kaskr/adcomp/issues

Uses libs:
  • openblas– Optimized BLAS
  • openmp– GCC OpenMP (GOMP) support library

30 exports 2 stars 6.16 score 4 dependencies 97 dependents 32.3k downloads

Last updated 2 days agofrom:e7022b6231

Exports:benchmarkcheckConsistencycompileconfigdynlibFreeADFungdbsourceMakeADFunnewtonnewtonOptionnormalizeoneStepPredictopenmpplot.parallelBenchmarkplot.tmbprofileprecompileprint.backtraceprint.checkConsistencyprint.sdreportRinterfacerunExamplerunSymbolicAnalysissdreportSRsummary.checkConsistencysummary.sdreporttemplateTMB.Versiontmbprofiletmbroot

Dependencies:latticeMatrixRcppRcppEigen

Readme and manuals

Help Manual

Help pageTopics
Convert estimates to original list format.as.list.sdreport
Benchmark parallel templatesbenchmark plot.parallelBenchmark
Check consistency and Laplace accuracycheckConsistency
Compile a C++ template to DLL suitable for MakeADFun.compile
Get or set internal configuration variablesconfig
Profile based confidence intervals.confint.tmbprofile
Add dynlib extensiondynlib
Free memory allocated on the C++ side by 'MakeADFun'.FreeADFun
Source R-script through gdb to get backtrace.gdbsource print.backtrace
Gauss Kronrod configurationGK
Construct objective functions with derivatives based on a compiled C++ template.MakeADFun
Generalized newton optimizer.newton
Set newton options for a model object.newtonOption
Normalize process likelihood using the Laplace approximation.normalize
Calculate one-step-ahead (OSA) residuals for a latent variable model.oneStepPredict
Control number of OpenMP threads used by a TMB model.openmp
Plot likelihood profile.plot.tmbprofile
Precompile the TMB library in order to speed up compilation of templates.precompile
Print output from 'checkConsistency'print.checkConsistency
Print brief model summaryprint.sdreport
Create minimal R-code corresponding to a cpp template.Rinterface
Run one of the test examples.runExample
Run symbolic analysis on sparse HessianrunSymbolicAnalysis
General sdreport function.sdreport
Sequential reduction configurationSR
Summarize output from 'checkConsistency'summary.checkConsistency
summary tables of model parameterssummary.sdreport
Create cpp template to get started.template
Version information on API and ABI.TMB.Version
Adaptive likelihood profiling.tmbprofile
Compute likelihood profile confidence intervals of a TMB object by root-findingtmbroot