Skip to contents

Project selectivity

Usage

project_selectivity(
  data,
  obj,
  mcmc = NULL,
  first_yr = 2021,
  last_yr = 2035,
  samp_years = 2015:2022,
  iters
)

Arguments

data

A list containing model data including dimensions and biological parameters.

obj

A TMB model object returned from MakeADFun.

mcmc

Optional MCMC fit object from SparseNUTS. If NULL, uses MLE parameters.

first_yr

An integer specifying the first projection year (default: 2021).

last_yr

An integer specifying the last projection year (default: 2035).

samp_years

An integer vector of historical years to sample selectivity from (default: 2015:2022).

iters

An integer vector specifying which MCMC iterations to use.

Value

An array of simulated selectivity values with dimensions \[n_iter, n_fishery + 1, n_proj, n_age\].