Chapter 12 Other related packages
Packages that will do Kalman filtering and smoothing are many, but packages that estimate the parameters in a MARSS model, especially constrained MARSS models, are much less common. The following are those with which we are familiar, however there are certainly more packages for estimating MARSS models in engineering and economics of which we are unfamiliar. The MARSS package is unusual in that it uses an EM algorithm for maximizing the likelihood as opposed to a Newton-esque method (e.g. BFGS). The package is also unusual in that it allows you to specify the initial conditions at \(t=0\) or \(t=1\), allows degenerate models (with some of the diagonal elements of \(\mathbf{R}\) or \(\mathbf{Q}\) equal to zero). Lastly, model specification in the MARSS package has a one-to-one relationship between the model list in MARSS() and the model as you would write it on paper as a matrix equation. This makes the learning curve a bit less steep. However, the MARSS package has not been optimized for speed and probably will be really slow if you have time-series data with a lot of time points.