r4ss - R Code for Stock Synthesis
A collection of R functions for use with Stock Synthesis, a fisheries stock assessment modeling platform written in ADMB by Dr. Richard D. Methot at the NOAA Northwest Fisheries Science Center. The functions include tools for summarizing and plotting results, manipulating files, visualizing model parameterizations, and various other common stock assessment tasks. This version of 'r4ss' is compatible with Stock Synthesis versions 3.24 through 3.30 (specifically version 3.30.25, from June 2026). Support for 3.24 models is only through the core functions for reading output and plotting.
Last updated
fisheriesfisheries-stock-assessmentstock-synthesis
11.94 score 48 stars 2 dependents 2.2k scripts 870 downloads
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/>.
Last updated
multivariate-timeseriesstate-space-modelsstatisticstime-series
10.71 score 54 stars 3 dependents 1.2k scripts 1.1k downloads
mizer - Dynamic Multi-Species Size Spectrum Modelling
A set of classes and methods to set up and run multi-species, trait based and community size spectrum ecological models, focused on the marine environment.
Last updated
ecosystem-modelfish-population-dynamicsfisheriesfisheries-managementmarine-ecosystempopulation-dynamicssimulationsize-structurespecies-interactionstransport-equationcpp
9.83 score 42 stars 243 scripts 775 downloads
FIMS - The Fisheries Integrated Modeling System
The Fisheries Integrated Modeling System is a next-generation framework of stock assessment models, assisting fishery managers with the goal of achieving sustainable fisheries. This system, when completed in a few years, offers the NOAA Fisheries and global fisheries science communities an advanced set of stock assessment models. These tools can be used separately or in combination to incorporate ecosystem and socioeconomic data and models, as well as climate effects and other drivers within the marine environment, into stock assessment models.
Last updated
noaa-nsapstock-assessmentcpp
9.45 score 46 stars 109 scriptsbayesdfa - Bayesian Dynamic Factor Analysis (DFA) with 'Stan'
Implements Bayesian dynamic factor analysis with 'Stan'. Dynamic factor analysis is a dimension reduction tool for multivariate time series. 'bayesdfa' extends conventional dynamic factor models in several ways. First, extreme events may be estimated in the latent trend by modeling process error with a student-t distribution. Second, alternative constraints (including proportions are allowed). Third, the estimated dynamic factors can be analyzed with hidden Markov models to evaluate support for latent regimes.
Last updated
onetbbcpp
8.01 score 29 stars 126 scripts 731 downloads
Rpath - R implementation of Ecopath with Ecosim
This package implements the core mass balance equations made popular by Ecopath with Ecosim. There are two parts to the package, the static snapshot of energy flow through the system using rpath and dynamic simulations run using the rsim family of functions.
Last updated
cpp
7.47 score 43 stars 150 scriptsSPoRC - A Generalized Stochastic (S) Population (Po) Model Over Regional (R) Components (C)
A generalized spatial population model for stock assessment, written in RTMB.
Last updated
7.10 score 10 stars 93 scripts
FishSET - Spatial Economics Toolbox for Fisheries
The Spatial Economics Toolbox for Fisheries (FishSET) is a set of tools for organizing data; developing, improving and disseminating modeling best practices.
Last updated
economicslocation-choice-modelnwfsc-framcpp
6.80 score 9 stars 15 scripts
nmfspalette - A Color Palette for NOAA Fisheries
This is a package that implements a color palette in line with the NOAA Fisheries Branding Guide.
Last updated
color-palettenoaanoaa-nsap
6.31 score 36 stars 81 scriptsswfscDAS - Processing DAS Data Files
Process and summarize DAS data files. These files are typically, but do not have to be DAS <https://repository.library.noaa.gov/view/noaa/3174> data produced by the Southwest Fisheries Science Center (SWFSC) program 'WinCruz'. This package standardizes and streamlines basic DAS data processing, and includes a PDF with the DAS data format requirements expected by the package.
Last updated
6.23 score 4 stars 2 dependents 35 scripts 334 downloadsasar - Build NOAA Stock Assessment Report
Build a full or update stock assessment report for any stock assessment model. Parameterization allows the user to call a template based on their regional science center, species, area, ect.
Last updated
latexnoaa-nsapquartostock-assessmentstock-assessment-reports
6.10 score 45 stars 20 scripts
ghactions4r - Use GitHub Actions Reusable Workflows for R Packages
Provides functions to allow users to set up github action workflows related to R packages.
Last updated
github-actionsnoaanoaa-fisheries
5.53 score 16 stars 2 scriptsfishprior - Get Priors for Life-History Traits of Fishes
This package extracts information the the rfishbase R package to inform priors for parameters that are commonly included in assessment models of marine resources. The parameters of interest are life-history parameters such as natural mortality but can also pertain to parameters that are fishery-related but have implausible values due to life-history traits such as selectivity parameters.
Last updated
noaa-nsap
5.22 score 5 stars 7 scriptsAgeingError - Estimating ageing error with 'TMB' from double reads
Implements Generalized Linear Mixed Effect Models (GLMMs) using TMB to estimate ageing error from double reads of otoliths. The original analysis (Punt et al. 2008; <doi:10.1139/F08-111>) was written in ADMB and focused on estimating imprecision and bias. The newer version of the software allows for random effects using TMB.
Last updated
cpp
5.12 score 11 stars 10 scriptsbycatch - Fit Bayesian Models to Bycatch Data
Fits models to bycatch data, and can expand to fleet-wide estimates, like in situations when fisheries are observed with less than 100% observer coverage.
Last updated
onetbbcpp
5.11 score 3 stars 18 scriptsSSMSE - Management Strategy Evaluation (MSE) using Stock Synthesis (SS)
An R package for performing Management Strategy Evaluation (MSE) using Stock Synthesis (SS3). SS3 is used as the Operating Model (OM) and, if the user desires, the Estimation model (EM). SSMSE allows existing SS3 models to be used as the basis for an OM. These OMs are used in the MSE framework provided by SSMSE to evaluate the implications of management actions on a population given uncertainty.
Last updated
stock-synthesis
4.89 score 21 stars 61 scripts
NWCTrends - Standardized Trend Metrics for Salmonid Populations
This is runs the standardized trends metrics used in the 2016 and 2020 5-year NWFSC Viability Reports for listed PNW salmonids. To run, type library(NWCTrends) and then NWCTrends_report().
Last updated
marssnoaaprotected-speciessalmontime-series
3.48 score 2 stars 7 scripts
rCAX - Coordinated Assessments REST API R Client
This package is an R client for the StreamNet Coordinated Assessments HLI REST API.
Last updated
noaarest-apisalmon
3.00 score 5 stars 20 scriptsageproR - R package interface for AGEPRO (Age Structured Projection Model) data
Object-oriented data structures based on the input file format defined in the Age Structured Projection Model Reference Manual. Includes support modules for AGEPRO input file support, and experimental JSON input file format.
Last updated
2.54 score 1 stars 2 scripts
FishEconProdOutput - Price Method Fisheries Economics Total Factor Productivity Outputs
Here we provide methodology guidelines on how to calculate fishery productivity measurement at the individual fishery and aggregate sector levels. Attention is given to the constructions of output and total factor productivity based on available data and a bottom-up approach. Given that there is no nation-wide standard cost survey, we recommend starting with measuring TFP at the fishery level based on a translog gross output production possibility frontier using index number techniques. Special attention is given to measuring quality-adjusted physical capital inputs in the bottom-up approach.
Last updated
departmenteconomicsfisheriesnational-oceanicnoaanoaa-fisheries-officeproductivityopenjdk
1.70 score