|
Project Information |
Download the current release of MARSS 1.1 from CRAN. This project page is where we are posting code for MARSS 1.2 (bug fixes) before uploading to CRAN.
MARSS is an R package which fits mulitvariate state-space models to multivariate time-series data.
x(t) = B x(t-1) + u + v(t), v(t)~MVN(0,Q)
y(t) = Z x(t) + a + w(t), w(t)~MVN(0,R)
where all elements of these equations are matrices as this is a multivariate auto-regressive model.
What you need to use this code: MARSS is an R package, thus you need to install R from CRAN in order to use the package Once you have R installed, then install the MARSS package using the standard R package instructions (if you are using an R GUI, then you use the "Install Packages" menu.) If you have never done this, see the instructions on CRAN.
About this code: This code is used to estimate maximum likelihood parameters for multivariate state space time series models via an EM algorithm using the Kalman filter+smoother. We have a number of online workshops on multivariate state-space models available with case studies and examples for estimating trends, evaluating population structure, estimating interactions, and analyzing movement data: WORKSHOPS Our EM algorithm is similar to that in Shumway and Stoffer (1982) but actually was inspired by Ghahramani and Hinton (1996). Most other software uses the BFGS algorithm (a quasi-Newton method) for maximization, which often works great but for some models needs a bit of fiddling to get it to work (not throw numerical errors). Some researchers will use the EM algorithm to "get close" and then polish off with the BFGS algorithm. MARSS includes functions for bootstrapping (parametric and innovations), model selection (AIC, AICc, and bootstrap bias-corrected AICb), confidence intervals (approximate via Hessian, parametric bootstrap, and innovations bootstrap), parameter bias estimation (via bootstrapping), simulation, and initial condition searching. MARSS was developed by Eli Holmes, Eric Ward, and Kellie Wills.
Learning how to use the code: The user manual is given below. Scripts and data for all the case studies are included in the package (see the manual for instructions). The online workshop includes pdfs of our lectures.
Project news: March 10, 2011, A version of MARSS 2.0 is ready for public testing. Download MARSS 2.0. Mar 1, 2011, Testing of MARSS 2.0 is going well. I'm finishing up a dynamic factor analysis example to show Z estimation. Feb 16, 2011, Uploaded new Derivations.pdf that deals with 0s on R and Q matrices and uses a more elegant approach to missing values. Oct 2010, Coding of MARSS 2.0 is now 95% done (all algorithms coded and testing in progress).
See our personal websites for group news on papers coming out of this work: EE Holmes website, Eric Ward website, Brice Semmens website, and Mark Scheuerell website. (download stats from CRAN)
Bugs and issues fixed in 1.1: See Changes.pdf in MARSS/inst/doc folder. Issues being fixed in 2.0: adding algorithm for fully constrained estimation for all parameters (per algorithm in Derivations.pdf).
| Name | Status | Rev | Size | Updated | Downloads | Brief Description | Actions |
|---|---|---|---|---|---|---|---|
Parent directory
|
- | - | - | - | - | - | - |
| as_marssm.R |
Stable
|
4 | 2.28 KB | 10/14/2010 15:37 PDT | 9 9 | (none) |
|
| checkPopWrap.R |
Stable
|
5 | 7.16 KB | 10/14/2010 15:37 PDT | 13 13 | (none) |
|
| CSEGriskfigure.R |
Stable
|
3 | 2.85 KB | 10/14/2010 15:40 PDT | 10 10 | (none) |
|
| CSEGtmufigure.R |
Stable
|
1 | 2.77 KB | 08/03/2010 13:27 PDT | 9 9 | (none) |
|
| describe_marssm.R |
Stable
|
1 | 4.77 KB | 08/03/2010 13:27 PDT | 7 7 | (none) |
|
| diaghelpers.r |
Stable
|
2 | 565 B | 10/14/2010 15:35 PDT | 10 10 | (none) |
|
| find.degenerate.R |
Stable
|
2 | 1.15 KB | 09/15/2010 17:56 PDT | 9 9 | (none) |
|
| is_marssm.R |
Stable
|
3 | 4.23 KB | 09/15/2010 18:04 PDT | 10 10 | (none) |
|
| is_marssMLE.r |
Stable
|
5 | 2.62 KB | 10/14/2010 15:33 PDT | 16 16 | (none) |
|
| MARSS.R |
Stable
|
5 | 2.16 KB | 10/14/2010 15:40 PDT | 12 12 | (none) |
|
| MARSSaic.R |
Stable
|
3 | 2.57 KB | 09/15/2010 17:59 PDT | 10 10 | (none) |
|
| MARSSapplynames.R |
Stable
|
2 | 880 B | 09/15/2010 17:57 PDT | 8 8 | (none) |
|
| MARSSboot.R |
Stable
|
4 | 6.37 KB | 10/14/2010 15:34 PDT | 13 13 | (none) |
|
| MARSScheckdims.R |
Stable
|
1 | 892 B | 08/03/2010 13:27 PDT | 8 8 | (none) |
|
| MARSScheckpar.R |
Stable
|
2 | 1.93 KB | 09/15/2010 18:05 PDT | 9 9 | (none) |
|
| MARSShessian.R |
Stable
|
2 | 490 B | 09/15/2010 11:03 PDT | 10 10 | (none) |
|
| MARSSinits.R |
Stable
|
3 | 2.94 KB | 09/15/2010 17:57 PDT | 10 10 | (none) |
|
| MARSSinnovationsboot.R |
Stable
|
2 | 1.17 KB | 09/15/2010 17:57 PDT | 8 8 | (none) |
|
| MARSSkem.r |
Stable
|
4 | 16.06 KB | 10/14/2010 15:42 PDT | 13 13 | (none) |
|
| MARSSkemcheck.r |
Stable
|
4 | 1.22 KB | 10/14/2010 15:34 PDT | 11 11 | (none) |
|
| MARSSkf.R |
Stable
|
4 | 7.13 KB | 10/14/2010 15:36 PDT | 11 11 | (none) |
|
| MARSSLLprofile.R |
Stable
|
1 | 3.79 KB | 10/14/2010 15:43 PDT | 7 7 | (none) |
|
| marssm.R |
Stable
|
2 | 804 B | 09/15/2010 11:10 PDT | 10 10 | (none) |
|
| MARSSmcinit.R |
Stable
|
3 | 1.34 KB | 10/18/2010 16:10 PDT | 12 12 | (none) |
|
| MARSSoptim.r |
Stable
|
3 | 3.97 KB | 09/15/2010 19:08 PDT | 10 10 | (none) |
|
| MARSSoptions.R |
Stable
|
1 | 2.63 KB | 10/14/2010 15:43 PDT | 5 5 | (none) |
|
| MARSSparamCIs.R |
Stable
|
2 | 1.1 KB | 09/15/2010 18:01 PDT | 9 9 | (none) |
|
| MARSSsettings.R |
Stable
|
2 | 1.46 KB | 10/14/2010 15:42 PDT | 9 9 | (none) |
|
| MARSSsimulate.R |
Stable
|
3 | 4.51 KB | 09/15/2010 17:59 PDT | 11 11 | (none) |
|
| MARSSvectorizeparam.R |
Stable
|
2 | 962 B | 09/15/2010 18:01 PDT | 9 9 | (none) |
|
| popWrap.R |
Stable
|
3 | 3.84 KB | 10/14/2010 15:41 PDT | 13 13 | (none) |
|
| print_marssm.R |
Stable
|
1 | 1.19 KB | 08/03/2010 13:27 PDT | 9 9 | (none) |
|
| print_marssMLE.r |
Stable
|
2 | 5.17 KB | 10/14/2010 15:42 PDT | 11 11 | (none) |
|
| show.doc.R |
Stable
|
1 | 976 B | 08/03/2010 13:27 PDT | 9 9 | (none) |
|
| summary_marssm.R |
Stable
|
2 | 1.71 KB | 10/14/2010 15:39 PDT | 9 9 | (none) |
|
| summary_marssMLE.R |
Stable
|
1 | 579 B | 08/03/2010 13:27 PDT | 7 7 | (none) |