Skip to contents

Generate projected recruitment deviations using time series models.

Usage

project_recruitment(
  obj,
  data,
  mcmc = NULL,
  samp_yrs = 1980:2021,
  first_yr = 2022,
  last_yr = 2029,
  iters = 1:2000,
  max.p = 5,
  max.d = 5,
  max.q = 5,
  type = "arima",
  bootstrap = TRUE,
  seed = 42
)

Arguments

obj

A fitted TMB model object.

data

A list containing model data, including first_year, n_year, and n_region.

mcmc

An MCMC posterior sample object, or NULL if not using MCMC.

samp_yrs

An integer vector specifying the historical years to use for time series fitting.

first_yr

An integer specifying the first projection year.

last_yr

An integer specifying the last projection year.

iters

An integer specifying the total number of iterations to extract.

max.p

An integer specifying the maximum value of p for ARIMA model selection.

max.d

An integer specifying the maximum value of d for ARIMA model selection.

max.q

An integer specifying the maximum value of q for ARIMA model selection.

type

A character specifying projection type: "arima"/"auto", "AR1", "trend", "normal", or "worst10".

bootstrap

A logical specifying whether to use bootstrap simulation from the fitted ARIMA model.

seed

An integer random seed for reproducibility.

Value

a list containing projected recruitment deviations.