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
listcontaining model data, includingfirst_year,n_year, andn_region.- mcmc
An MCMC posterior sample object, or NULL if not using MCMC.
- samp_yrs
An
integervector specifying the historical years to use for time series fitting.- first_yr
An
integerspecifying the first projection year.- last_yr
An
integerspecifying the last projection year.- iters
An
integerspecifying the total number of iterations to extract.- max.p
An
integerspecifying the maximum value of p for ARIMA model selection.- max.d
An
integerspecifying the maximum value of d for ARIMA model selection.- max.q
An
integerspecifying the maximum value of q for ARIMA model selection.- type
A
characterspecifying projection type: "arima"/"auto", "AR1", "trend", "normal", or "worst10".- bootstrap
A
logicalspecifying whether to use bootstrap simulation from the fitted ARIMA model.- seed
An
integerrandom seed for reproducibility.
