Chapter 1 TMB Workshop
The first part of the course will be dedicated to an introductory training workshop to the statistical modeling software package Template Model Builder (TMB), with additional class sessions.
TMB is an R package that provides quick implementation for fitting complex models to data, has many applications for statistical ecological modeling, and is becoming the standard method for implementing fisheries stock assessment models.
Condensing some of the software instruction part of the course into a more dense period has some advantages:
1. a good way to learn is to be actively practicing; and with more focused sessions we can better help you get into a rhythm (we’ll still be using examples relevant to the course, but this also helps to separate learning software from some other course objectives).
2. there are a number of things going on in the fall that will disrupt our schedule (e.g. ICES annual science conference), and this is one way of ensuring you still get your money’s worth for the course.
3. there are others interested in TMB training and a short workshop format provides an easier way for these people to participate.
4. this approach has seemed to work for me in the past, and for others who teach similar material.
The sequence for the TMB training will be:
09/01 9:00-10:00 Software installation troubleshooting session (not required)
09/06 9:00-10:30 TMB workshop session 1
09/06 1:00-2:30 TMB workshop session 2 (regular MAR 580 class time)
09/08 9:00-10:30 TMB workshop session 3
09/08 1:00-2:30 TMB workshop session 4 (regular MAR 580 class time)
Documentation: The online TMB book is a great place to start.
RStudio Cloud
A RStudio Cloud virtual machine has been set up for you to use in this workshop (though many may choose to run things locally on their own machines). Participants should see their emails for the logon link.
Materials
A convenient way to access the code and materials is through the github repository for the TMB workshop, mebm-tmb
, can be found at https://github.com/gavinfay/mebm-tmb.
You can download the repository from here using the green Code
button.
(ask Gavin how to clone the repo so you can pull in his changes later in the week!)
Installation
These installation instructions are a good path for getting TMB installed on your machine.
Note that for Windows users, you will need to install Rtools as part of the process.
If you want to build TMB from source, including the development version, then you can follow the instructions on the TMB repo here.
NOTE Our RStudio Cloud instance has TMB installed already, and so if you use this you do not have to worry about getting it working on your machine. (but you might want to for other uses)