Summary

The goal of this example is to demonstrate how to setup a modular TMB model. This example replicates the standalone logisticGrowth example in this repository using a modular framework.

File Structure Overview

The logisticGrowth modular example uses the following file structure:

  1. Common.hpp
  1. likelihoods.hpp
  1. model.hpp: Sets up logisticGrowth C++ templated class

  2. DerivedQuantities.hpp -Example of including functions that calculate derived quantities

  3. logisticGrowth.cpp: TMB interface with model.hpp

  4. logisticGrowth.tpl: ADMB interface with model.hpp

  5. modular_demo.R: I/O R Interface