Package: MARSS 3.11.9

Elizabeth Eli Holmes

MARSS: Multivariate Autoregressive State-Space Modeling

The MARSS package provides maximum-likelihood parameter estimation for constrained and unconstrained linear multivariate autoregressive state-space (MARSS) models, including partially deterministic models. MARSS models are a class of dynamic linear model (DLM) and vector autoregressive model (VAR) model. Fitting available via Expectation-Maximization (EM), BFGS (using optim), and 'TMB' (using the 'marssTMB' companion package). Functions are provided for parametric and innovations bootstrapping, Kalman filtering and smoothing, model selection criteria including bootstrap AICb, confidences intervals via the Hessian approximation or bootstrapping, and all conditional residual types. See the user guide for examples of dynamic factor analysis, dynamic linear models, outlier and shock detection, and multivariate AR-p models. Online workshops (lectures, eBook, and computer labs) at <https://atsa-es.github.io/>.

Authors:Elizabeth Eli Holmes [aut, cre], Eric J. Ward [aut], Mark D. Scheuerell [aut], Kellie Wills [aut]

MARSS_3.11.9.tar.gz
MARSS_3.11.9.zip(r-4.7)MARSS_3.11.9.zip(r-4.6)MARSS_3.11.9.zip(r-4.5)
MARSS_3.11.9.tgz(r-4.6-any)MARSS_3.11.9.tgz(r-4.5-any)
MARSS_3.11.9.tar.gz(r-4.7-any)MARSS_3.11.9.tar.gz(r-4.6-any)
MARSS_3.11.9.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
MARSS/json (API)

# Install 'MARSS' in R:
install.packages('MARSS', repos = c('https://nmfs-opensci.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/atsa-es/marss/issues

Pkgdown/docs site:https://atsa-es.github.io

Datasets:

On CRAN:

Conda:

multivariate-timeseriesstate-space-modelsstatisticstime-series

10.83 score 54 stars 3 packages 1.2k scripts 1.5k downloads 28 mentions 31 exports 5 dependencies

Last updated from:bf06ca8e4d. Checks:7 NOTE, 2 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE191
source / vignettesOK244
linux-release-x86_64NOTE197
macos-release-arm64NOTE140
macos-oldrel-arm64NOTE106
windows-develNOTE153
windows-releaseNOTE174
windows-oldrelNOTE144
wasm-releaseOK145

Exports:accuracyautoplot.marssMLEautoplot.marssPredictCSEGriskfigureCSEGtmufigureforecastglanceldiagMARSSMARSSaicMARSSbootMARSScvMARSSFisherIMARSSfitMARSShatytMARSShessianMARSSinfoMARSSinitsMARSSinnovationsbootMARSSkemMARSSkemcheckMARSSkfMARSSkfasMARSSkfssMARSSoptimMARSSparamCIsMARSSresidualsMARSSsimulateMARSSvectorizeparamtidyzscore

Dependencies:genericsKFASlatticemvtnormnlme

Learning MARSS
Documentation | Tutorials | For Statisticians | CITATION | PUBLICATIONS | NOAA Disclaimer

Last update: 2023-05-20
Started: 2023-05-17

EM_Derivation

Last update: 2023-05-20
Started: 2017-03-28

Quick Start Guide
tldr; | The MARSS model | Model specification | Data and fitting | Data | Fit call | Different fitting methods | Defaults for model list | form="marxss" | form="dfa" | Showing the model fits and getting the parameters | Tips and Troubleshooting | Tips | Troubleshooting | More information and tutorials | Shortcuts and all allowed model structures | Z | B | U and x0 | A | Q, R and V0 | D and C | d and c | G and H | Covariates, Linear constraints and time-varying parameters | Covariates | Linear constraints | Time-varying parameters

Last update: 2023-05-20
Started: 2023-05-16

Residuals

Last update: 2023-05-20
Started: 2017-03-28

User Guide

Last update: 2023-05-20
Started: 2017-03-28

Readme and manuals

Help Manual

Help pageTopics
Multivariate Autoregressive State-Space Model EstimationMARSS-package
Return accuracy metricsaccuracy accuracy.marssMLE accuracy.marssPredict
Coefficient function for MARSS MLE objectscoef.marssMLE
Plot Extinction Risk MetricsCSEGriskfigure
Plot Forecast UncertaintyCSEGtmufigure
Example Data Setsdatasets
Return fitted values for X(t) and Y(t) in a MARSS modelfitted.marssMLE
forecast function for marssMLE objectsforecast.marssMLE
Return brief summary information on a MARSS fitglance glance.marssMLE
Harbor Seal Population Count Data (Log counts)harborSeal harborSealWA
Isle Royale Wolf and Moose DataisleRoyal
Return a diagonal list matrixldiag
Loggerhead Turtle Tracking Dataloggerhead loggerheadNoisy
logLik method for MARSS MLE objectslogLik logLik.marssMLE
Fit a MARSS Model via Maximum-Likelihood EstimationMARSS
Multivariate Dynamic Factor AnalysisMARSS.dfa
Multivariate AR-1 State-space ModelMARSS.marss
Multivariate AR-1 State-space Model with InputsMARSS.marxss
Vectorized Multivariate AR-1 State-space ModelMARSS.vectorized
AIC for MARSS ModelsMARSSaic
Bootstrap MARSS Parameter EstimatesMARSSboot
MARSScv is a wrapper for MARSS that re-fits the model with cross validated data.MARSScv
Observed Fisher Information Matrix at the MLEMARSSFisherI
Generic for fitting MARSS modelsMARSSfit
Hessian Matrix via the Harvey (1989) RecursionMARSSharveyobsFI
Compute Expected Value of Y, YY, and YXMARSShatyt
Parameter Variance-Covariance Matrix from the Hessian MatrixMARSShessian
Hessian Matrix via Numerical ApproximationMARSShessian.numerical
MARSS Error Messages and WarningsMARSSinfo
Initial Values for MLEMARSSinits
Bootstrapped Data using Stoffer and Wall's AlgorithmMARSSinnovationsboot
EM Algorithm function for MARSS modelsMARSSkem
Kalman Filtering and SmoothingMARSSkf MARSSkfas MARSSkfss
Class "marssMLE"marssMLE
Class "marssMODEL"marssMODEL
Parameter estimation for MARSS models using optimMARSSoptim
Standard Errors, Confidence Intervals and Bias for MARSS ParametersMARSSparamCIs
Class "marssPredict"marssPredict
MARSS ResidualsMARSSresiduals
Class "marssResiduals"marssResiduals
MARSS Contemporaneous ResidualsMARSSresiduals.tt
MARSS Smoothed ResidualsMARSSresiduals.tT
MARSS One-Step-Ahead ResidualsMARSSresiduals.tt1
Simulate Data from a MARSS ModelMARSSsimulate simulate.marssMLE
Plankton Data SetsivesDataByWeek ivesDataLP lakeWAplankton lakeWAplanktonRaw lakeWAplanktonTrans plankton
Plot MARSS MLE objectsautoplot.marssMLE plot.marssMLE
Plot MARSS Forecast and Predict objectsautoplot.marssPredict plot.marssPredict
Plot MARSS marssResiduals objectsautoplot.marssResiduals plot.marssResiduals
Population Data Setsgraywhales grouse kestrel okanaganRedds population-count-data prairiechicken redstart rockfish wilddogs
predict and forecast MARSS MLE objectsforecast predict
predict and forecast MARSS MLE objectspredict.marssMLE
Printing functions for MARSS MLE objectsprint.marssMLE
Printing marssMODEL Objectsprint.marssMODEL summary.marssMODEL
Printing function for MARSS Predict objectsprint.marssPredict
Model and state fitted values, residuals, and residual sigmaresiduals.marssMLE
Salmon Survival IndicesSalmonSurvCUI
Summary methods for marssMLE objectssummary.marssMLE
Return estimated parameters with summary informationtidy tidy.marssMLE
Create a LaTeX Version of the ModeltoLatex.marssMLE toLatex.marssMODEL
Smoothed and filtered x and y time seriestsSmooth tsSmooth.marssMLE
z-score a vector or matrixzscore