Tuesday, March 12, 2013

Week 10: Applied Time-Series Analysis for Fisheries and Environmental Data

Class material: webpage

Week 10: Dynamic linear models
This week, we give a brief introduction to an important class of MARSS models: dynamic linear models. These are multivariate linear regression models where the regression parameters (slope and intercepts) are treated as a AR process and thus are allowed to time evolve. We also review some of the diagnostics for MARSS models fits.

Lab 10 In the lab, you'll go through an simple example of a univariate dynamic linear model with time-varying slope and intercept.
Lecture 10 You can find the pdf of lecture on the class webpage along with the link to watch a recording of the lecture.

Tuesday, March 5, 2013

Week 9: Applied Time-Series Analysis for Fisheries and Environmental Data

Class material: webpage

Week 9: Bayesian hierarchical multivariate state-space models
This week, we discuss fitting non-linear MARSS models and MARSS models with non-Gaussian errors using Bayesian methods. This is a very brief introduction and many shows some examples of how one sets up a MARSS model in JAGS and shows you what the posteriors of some models look like.
* Posteriors for MARSS models
* Intro to JAGS (the Gibbs sampler we will be using)
* many examples of fitting non-linear and non-Gaussian MARSS models

Lab 9 The main lab is to go through the JAGS examples shown in the lecture.
Lecture 9 You can find the pdf of lecture on the class webpage along with the link to watch a recording of the lecture.

Tuesday, February 26, 2013

Week 8: Applied Time-Series Analysis for Fisheries and Environmental Data

Class material: webpage

Week 8: Estimating interactions (the B matrix)
This week, we discuss issues related to the estimation of the B matrix in the context of using it to represent species interactions in a community dynamics models.
* univariate discrete time Gompertz model
* multivariate discrete time Gompertz model
* including covariates
* spurious density dependence resulting from ignoring observation error
* uncertainty in B elements resulting from estimating observation variance
* different methods for estimating confidence intervals: bootstrapping, hessian approximation, profile likelihood
* diagnostics

Lab 8
The main lab is to go through case study 7 in the MARSS User Guide and the corresponding code.
Lecture 8
You can find the pdf of lecture on the class webpage.


Week 7: Applied Time-Series Analysis for Fisheries and Environmental Data


Class material: webpage

Week 7: Dynamic factor analysis

This week, we use MARSS to do dynamic factor analysis (DFA), which allows us to look for a set of common underlying trends among a relatively large set of time series (Harvey, 1989, sec. 8.5). This is conceptually different than what we have been doing in the previous weeks. Here we are trying to explain temporal variation in a set of n observed time series using linear combinations of a set of m hidden random walks, where m << n. You can think of this as PCA for time-series data. Zuur et al. (2003) show a number of examples of DFA applied to catch data and densities of zoobenthos.

Lab 7
The main lab is to go through the dynamic factor analysis chapter in the MARSS User Guide and the corresponding code.

Lecture 7
You can find the ppt of lecture on the class webpage. Technical difficulties prevented recording of the lecture.

Wednesday, February 13, 2013

Week 6: Applied Time-Series Analysis for Fisheries and Environmental Data


Class material: webpage

Week 6: Introduction to including covariates in multivariate time-series model
This week we introduce the inclusion of covariates using the framework of a multivariate autoregressive model written in state-space form.  You will understand the lecture better if you read the chapter on covariates in the MARSS User Guide first.  Much of the lecture is about how to include covariates in different mathematically equivalent ways.  You'll want to translate the R code in the lecture into the mathematical formulas (matrix form) to see how covariates are entering the mathematical model.


Lab topic:
The main lab is to go through the covariate chapter and examples in the MARSS User Guide.  Then we have some salmon data to play with to try different ways of including cycles (in this case driven by cohort strength) into an analysis.

Lecture 6
Click the big arrow to start.  You can also find the ppt of lecture t on the class webpage.



Wednesday, February 6, 2013

Week 5: Applied Time-Series Analysis for Fisheries and Environmental Data

Class material: webpage

Week 5: Introduction to multivariate autoregressive state-space models
Lecture topics:
  • Review of dealing with obs error with ARIMA (from last week)
  • Multivariate state space models
  • How these are expressed mathematically
  • Analysis of multi-site data using this framework
  • Parameter estimation: Kalman filter, Newton methods and EM algorithm
Lab topic:
The main lab is to go through case study 2 in the MARSS User Guide. I have a Fish 507 specific version of the case study code on the course website with questions to answer as you go through. Case study 3 and 8 are optional but going through them will help solidify your understanding of multivariate state-space models. Do go through the ARMA code as it discusses some important points about the effects of data transformation (in this case differences) on the time-series model that is appropriate for the data.

Lecture 5
Click the big arrow to start the show. You can also find just a pdf of lecture 5 on the class webpage.

Thursday, January 31, 2013

Week 4: Applied Time-Series Analysis for Fisheries and Environmental Data

Class material: webpage

Week 4: Introduction to univariate autoregressive state-space models
Topics:
  • State-space models
  • Process versus observation error
  • Model Selection


Lecture 4
Click the big arrow to start the show. You can also find just the ppt of lecture 3 on the class webpage.