Package: TMB 1.9.15

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.15.tar.gz
TMB_1.9.15.tar.gz(r-4.5-noble)TMB_1.9.15.tar.gz(r-4.4-noble)
TMB_1.9.15.tgz(r-4.4-emscripten)TMB_1.9.15.tgz(r-4.3-emscripten)
TMB.pdf |TMB.html
TMB/json (API)
NEWS

# Install 'TMB' 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

openblasopenmp

7.14 score 2 stars 117 packages 1.7k scripts 33k downloads 24 mentions 30 exports 4 dependencies

Last updated 4 months agofrom:c93443dddf. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 09 2024
R-4.5-linux-x86_64OKDec 09 2024

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