Skip to contents

In progress!

This vignette gives the equations behind CEATTLE’s population dynamics, predation, consumption and observation models, and the inputs that select each selectivity and catchability form.

Population dynamics

CEATTLE is an age-structured model following cohorts of species ii, age aa and sex ss through time yy. Annual recruitment and the initial age structure are estimated as random effects (recruitment variance estimated) or as penalized deviates (variance fixed). Because the initial age structure is estimated assuming the population was already depleted before the first model year, the mean recruitment parameter R‾i\bar{R}_{i} is biased low: projected recruitment should resemble the hindcast recruitment deviations, and biomass reference points should use mean annual recruitment. nsex sets 1- or 2-sex populations; the sex ratio at birth ρi1\rho_{i1} is the first age of sex_ratio. Natural mortality is split into predation mortality (M2) and residual mortality from all other causes (M1); M1 is input on the M1_base sheet or estimated with M1Fun = build_M1(M1_model = ...) in fit_mod().

Nis1,y=Risy=R‾ieτi,y*ρi1N_{is1,y} = R_{isy} = \bar{R}_{i }e^{\tau_{i,y}}*\rho_{i1}Nisa,1={R‾ie(−jM1isa)*ρi1R‾ie(−∑a−1M1isa)(1−e(−∑a−1M1isAi))*ρi1N_{isa,1} = \left \{ \begin{array}{} \bar{R}_ie^{ \left( -j M1_{isa} \right)}*\rho_{i1} \\ \frac{\bar{R}_ie^{ \left( -\sum^{a-1} M1_{isa} \right)}} {\left(1 - e^{\left( -\sum^{a-1} M1_{is A_i} \right)} \right)} *\rho_{i1} \end{array} \right.Nisa+1,y+1=Nisa,ye−Zisa,yN_{is a+1, y+1} = N_{isa,y} e^{-Z_{isa,y}}NisAi,y+1=NisAi−1,ye−ZisAi−1,y+NisAi,ye−ZisAi,yN_{is A_i, y+1} = N_{is A_{i}-1,y} e^{-Z_{is A_{i}-1,y}} + N_{is A_{i},y} e^{-Z_{is A_{i},y}}Bisa,y=Nisa,yWisa,yB_{isa,y} = N_{isa,y} W_{isa,y}SSBisa,y=Bisa,yρiaSSB_{isa,y} = B_{isa,y} \rho_{ia}Zisa,y=M1isa+M2isa,y+Fisa,yZ_{isa,y} = M1_{isa} + M2_{isa,y} + F_{isa,y}

Predation sub-model

suitMode sets predator-prey preference (suitability, that is predator selectivity) and msmMode the functional response.

Suitability

Suitability is a predator’s prey and size preference, together with factors such as predator-prey spatial overlap.

MSVPA Type 2 based suitability

Suitability is derived empirically, following Magnússon (1995), from the mean proportion by weight of prey-at-age in the stomachs of predators-at-age, U‾pbjisa\bar{U}_{pbjisa} (diet_data). suitMode = 0 Predator-prey suitability for predators of species pp, sex bb, age jj, and prey of species ii, sex ss and age aaŜpbjisa=1ny∑y(U‾pbjisaBisa,y∑isa(U‾pbjisaBisa,y)+1+∑isaU‾pbjisaBpother)\hat{S}_{pbjisa} = \frac{1}{n_y} \sum_y \left( \frac{ \frac{\bar{U}_{pbjisa}} {B_{isa,y}} } {\sum_{isa} \left( \frac{\bar{U}_{pbjisa}} {B_{isa,y}} \right) + \frac{1 + \sum_{isa} \bar{U}_{pbjisa}} {B_p^{other}} } \right)

Predation mortality

Single-species mode

Independent single-species models: mortality is fishing plus input or estimated natural mortality (M=M1M = M1). msmMode = 0 M2isa,y=0M2_{isa,y} = 0

MSVPA Type 2 based predation mortality

msmMode = 1 An MSVPA-based formulation following previous MSCAA models (Curti et al., 2013; Holsman et al., 2016; Tsehaye et al., 2014), built from suitability coefficients Ŝpbjisa\hat{S}_{pbjisa} (estimated or empirical), input annual ration/consumption (below), mean annual prey biomass (estimated or input), and the input biomass of other prey available to predator pp, BpotherB_p^{other}. Predation and biomass are interdependent, so predation mortality and the age-structured dynamics are iterated a fixed number of times (niter, no convergence test); three to five iterations suffice. Fits are generally insensitive to BpotherB_p^{other} over a range of values; it has historically been derived from ecosystem-wide biomass estimates. For predators of species pp, sex bb, age jj and prey of species ii, sex ss, age aaM2isa,y=∑pbj(Npbj,yδpbj,ySpbjisa∑isa(SpbjisaBisa,y)+Bpother(1−∑isa(Spbjisa)))M2_{isa,y} = \sum_{pbj} \left( \frac{N_{pbj,y} \delta_{pbj,y} {S}_{pbjisa}} {\sum_{isa} \left({S}_{pbjisa} B_{isa,y} \right) + B_p^{other} \left(1 - \sum_{isa} \left({S}_{pbjisa} \right) \right)} \right)

MSVPA Type 3 based predation mortality

msmMode = 2 A Type III functional response: the available-food denominator replaces prey biomass Bisa,y=Nisa,yWisa,yB_{isa,y} = N_{isa,y} W_{isa,y} with Nisa,y2Wisa,yN^2_{isa,y} W_{isa,y}, so predation rate is sigmoidal (accelerating, then saturating) in prey density. Low-density prey get a refuge from predation, which can stabilize multi-species dynamics at low stock sizes. M2isa,y=∑pbj(Npbj,yδpbj,ySpbjisa∑i′a′s′(Spbji′a′s′Ni′a′s′,y2Wi′a′s′,y)+Bpother(1−∑i′a′s′Ŝpbji′a′s′))M2_{isa,y} = \sum_{pbj} \left( \frac{N_{pbj,y} \delta_{pbj,y} {S}_{pbjisa}} {\sum_{i'a's'} \left({S}_{pbji'a's'} N^2_{i'a's',y} W_{i'a's',y} \right) + B_p^{other} \left(1 - \sum_{i'a's'} \hat{S}_{pbji'a's'} \right)} \right)

Consumption

Consumption is either an environmentally driven bioenergetics model or direct input of consumption-at-age, controlled per species on the bioenergetics_control sheet:

  • Ceq Which bioenergetics equation scales maximum consumption with temperature: 1 = exponential (Stewart et al 1983); 2 = warm-water temperature dependence (Kitchell et al 1977; sensu Holsman and Aydin 2015); 3 = cool- and cold-water temperature dependence (Thornton and Lessem 1978); 4 = no bioenergetics: annual ration (kg per predator per year) is read from ration_data and scaled by Pvalue; CA, CB and fday are not read
  • Cindex Which env_data index supplies TyT_y for bioenergetics-based ration
  • Pvalue Tuning parameter φp\varphi_p scaling the maximum consumption used for ration
  • fday Foraging days per year, FdaypFday_p
  • CA αpδ\alpha^{\delta}_p, the intercept of the allometric mass function for maximum consumption, Cmax = CA * Weight ^ (1 + CB), with Weight in grams
  • CB βpδ\beta^{\delta}_p, the slope of that function
  • Qc, Tco, Tcm, Tcl, CK1, CK4 Parameters QpcQ^c_p, TpcoT^{co}_p, TpcmT^{cm}_p, TpclT^{cl}_p, CK1pCK1_p and CK4pCK4_p of the temperature scaling function; which are read depends on Ceq, per the algorithms below

Under Ceq 1-3, ration_data holds the relative foraging rate RFRpbj,yRFR_{pbj,y}; ration can be tuned through fday and Pvalue. The weight-at-age used in the consumption equations is set by pop_wt_index.

Bioenergetics based ration

Ceq %in% 1:3 Annual ration (δpbj,y\delta_{pbj,y}, kg per predator per year) of predator pp of sex bb and age jj in year yy: δpbj,y=RFRpbj,y*Fdayp*αpδWpbj,y(1+βpδ)*f(Ty)p\delta_{pbj,y} = RFR_{pbj,y}*Fday_p *\alpha^{\delta}_p W_{pbj,y}^{\left(1+\beta^{\delta}_p\right)} *f\left(T_y \right)_p

where WW is weight-at-age in grams (stored in kg and multiplied by 1000 here), so αpδ\alpha^{\delta}_p is the coefficient for a gram-scale weight; the result, in grams, is divided by 1000 to give kg. Ration can be tuned by adjusting Pvalue (φp\varphi_p) to help convergence: δpbj,y=φp*δpbj,y\delta_{pbj,y} = \varphi_p * \delta_{pbj,y}

Temperature scaling algorithms.

Ceq = 1: Exponential function from Stewart et al. 1983: f(Ty)p=eQpc*Tyf \left(T_y \right)_p = e^{Q^c_p *T_y}

Ceq = 2: Temperature dependence for warm-water-species from Kitchell et al. 1977: f(Ty)p=VXe(X(1−V))f \left(T_y \right)_p = V^X e^{\left(X \left(1-V \right) \right)}V=(Tpcm−Ty)/(Tpcm−Tpco)V = \left( T^{cm}_p - T_y \right)/ \left( T^{cm}_p - T^{co}_p \right)X=(Z2(1+(1+40/Y)0.5)2)/400X = \left(Z^2 \left(1+ \left( 1 + 40 /Y \right)^{0.5} \right)^2 \right)/400Z=ln(Qpc)(Tpcm−Tpco)Z = ln\left(Q^c_p \right) \left( T^{cm}_p - T^{co}_p \right)Y=ln(Qpc)(Tpcm−Tpco+2)Y = ln\left(Q^c_p \right) \left( T^{cm}_p - T^{co}_p + 2\right)

Ceq = 3: Temperature dependence for cool and cold-water species from Thornton and Lessem 1978: f(Ty)p=Ka*Kbf \left(T_y \right)_p = Ka * KbKa=CpK1*L1/(1+CpK1*(L1−1))Ka = C^{K1}_p * L_1 / (1+C^{K1}_p * (L_1 - 1 ))L1=eG1*(Ty−Qpc)L_1 = e^{G_1 * (T_y - Q^c_p)}G1=1Tpco−Qpc*log⁡(0.98*(1−CK1p)CK1p*0.02)G_1 = \frac{1}{T^{co}_p-Q^c_p}*\log\left(\frac{0.98*(1-CK1_p)}{CK1_p*0.02}\right)Kb=CK4p*L21+CK4p*(L2−1)Kb = \frac{CK4_p *L_2} {1+CK4_p*(L_2-1)}L2=eG2(Tpcl−Ty)L_2 = e^{G_2 (T^{cl}_p - T_y)}G2=1Tpcl−Tpcm*log⁡(0.98*(1−CK4p)CK4p*0.02)G_2 = \frac{1}{T^{cl}_p-T^{cm}_p}*\log\left( \frac{0.98*(1-CK4_p)}{CK4_p*0.02}\right)

Input ration-at-age

Ceq = 4 reads annual ration at sex/age, δpbj,yin\delta^{in}_{pbj,y}, directly from ration_data (kg per predator per year), scaled by Pvalue; CA, CB and fday are not read. δpbj,y=φp*δpbj,yin\delta_{pbj,y} = \varphi_p * \delta^{in}_{pbj,y}

Fishery and survey observation model

CEATTLE is fit to time series of fishery catch, survey biomass, and length- or age-composition data. Log-catch and (by default) log-index observations are normally distributed; age and length compositions are multinomial or Dirichlet-multinomial (Thorson et al. 2017), with their sample sizes input. There is no separate sex-ratio likelihood component: sex-ratio information enters through joint (comp_data$Sex = 3) composition data, whose female and male cells are normalized together. The log-scale index SD is input, estimated as a free parameter, or derived analytically following Walters and Ludwig (1994), per Estimate_index_sd. Selectivity and catchability are estimated or input separately for each fishery and survey.

Predicted catch follows the Baranov catch equation: Ĉisa,y=Fisa,yZisa,y(1−e−Zisa,y)Nisa,y\hat{C}_{isa,y} = \frac{F_{isa,y}} {Z_{isa,y}} \left( 1 - e^{-Z_{isa,y}} \right) N_{isa,y}Ĉi,y=∑s∑aAiFisa,yZisa,y(1−e−Zisa,y)Nisa,yWisa,y\hat{C}_{i,y} = \sum_s\sum_a^{A_i} \frac{F_{isa,y}} {Z_{isa,y}} \left( 1 - e^{-Z_{isa,y}} \right) N_{isa,y} W_{isa,y}Fisa,y=F‾fieϵfi,ysfisaF_{isa,y} = \bar{F}_{f_i}e^{\epsilon_{{f_i},y}} s_{{f_i}sa} An index is predicted from catchability qfiyq_{f_iy} and selectivity Sfisa,yS_{f_isa,y}, in biomass I:B̂fi,y\hat{I:B}_{{f_i},y} (mt) or in numbers I:N̂fi,y\hat{I:N}_{{f_i},y} (thousands of fish), per Observation_units:

I:B̂fi,y=∑s∑a(Ñisa,yWfisa,ySfisa,yqfiy)\hat{I:B}_{{f_i},y} = \sum_s\sum_a \left( \tilde{N}_{isa,y}\, W_{{f_i}sa,y}\, S_{{f_i}sa,y}\, q_{{f_i}y} \right)I:N̂fi,y=∑s∑a(Ñisa,ySfisa,yqfiy)\hat{I:N}_{{f_i},y} = \sum_s\sum_a \left( \tilde{N}_{isa,y}\, S_{{f_i}sa,y}\, q_{{f_i}y} \right)

The two fleet types differ in the numbers the index sees, Ñisa,y\tilde{N}_{isa,y}. A survey index is a snapshot of the numbers that have survived to the survey month, Monthfi,yMonth_{{f_i},y}. That month is read from each index_data row, not from the fleet, so survey timing can differ by year.

Ñisa,y=Nisa,ye−(Monthfi,y/12)Zisa,y(Fleet_type = Survey)\tilde{N}_{isa,y} = N_{isa,y}\, e^{-(Month_{{f_i},y}/12) Z_{isa,y}} \qquad \text{(Fleet\_type = Survey)}

A fishery index is CPUE, accumulated over the year with the catch. Baranov gives Ĉisa,y=Fisa,yN‾isa,y\hat{C}_{isa,y} = F_{isa,y} \bar{N}_{isa,y}, and effort cancels the FF (since Fisa,y=qfiEEfi,ysfisaF_{isa,y} = q^{E}_{f_i} E_{f_i,y} s_{{f_i}sa}), leaving the year-average numbers the catch equation uses:

Ñisa,y=N‾isa,y=Nisa,y1−e−Zisa,yZisa,y(Fleet_type = Fishery)\tilde{N}_{isa,y} = \bar{N}_{isa,y} = N_{isa,y}\, \frac{1 - e^{-Z_{isa,y}}}{Z_{isa,y}} \qquad \text{(Fleet\_type = Fishery)}

A fishery’s age composition is also built on N‾\bar{N}, so its index, catch and comps are consistent, and Monthfi,yMonth_{{f_i},y} is not read for a fishery’s index rows. This is keyed on Fleet_type; there is no column to set. The distinction moves trend as well as scale, so a constant qq cannot absorb it: at Month = 6, e−Z/2e^{-Z/2} is 1.0% below N‾/N\bar{N}/N at Z=0.5Z = 0.5 but 8.8% below at Z=1.5Z = 1.5. Stock Synthesis splits the same way on its per-fleet survey timing (SS_expval.tpl: timing≥0→e−Z⋅timingtiming \ge 0 \rightarrow e^{-Z \cdot timing}; timing<0timing < 0, required of every fishing fleet →(1−e−Z)/Z\rightarrow (1 - e^{-Z})/Z). See vignette("model-options-and-functionality") for the seasonal-fishery case and the measured trend errors.

Selectivity parameterizations

Selectivity is controlled by Selectivity_index, Selectivity, N_sel_bins, Time_varying_sel, Time_varying_sel_sd, Age_first_selected and Bin_first_selected on the fleet_control sheet:

  • Selectivity_index: Fleets given the same value share one selectivity parameter block.
  • Selectivity: Selectivity parameterization for the fleet: 0 or "Fixed" = empirical selectivity provided in emp_sel; 1 or "Logistic"; 2 or "NonParametric" sensu Ianelli et al 2018; 3 or "DoubleLogistic"; 4 or "DescendingLogistic"; 5 or "Hake", non-parametric sensu Taylor et al 2015; 6 or "2DAR1" for bin by year (deviations as in Xu et al. 2019); 7 or "3DAR1", the weight-at-age Gaussian Markov random field (GMRF) of Cheng et al. (2023) applied to selectivity; 8 or "DoubleNormal", a four-parameter double normal (peak, ascending and descending widths, and a right-tail floor): the Stock Synthesis pattern 24 shape without its initial-selectivity and plateau-width parameters; 9 or "NonParametricPM", Ianelli non-parametric with the ADMB AMAK ("pm") penalty; 11 or "LogisticPM", the AMAK logistic with a free age-1 selectivity; 13 or "NonParametricIntegrable", the Ianelli base curve whose deviations have a proper density and so integrate under random_sel (Time_varying_sel picks the structure: "Off", "IID" or "RandomWalk"); 15 or "DoubleNormalSS3", the six-parameter Stock Synthesis pattern 24 double normal (Methot and Wetzel 2013). There is no 10, 12 or 14. Whether a form is age- or length-based is set by Selectivity_dimension, not by the code, except that "Fixed" is always at age.
  • N_sel_bins: Number of age or length bins (per Selectivity_dimension) estimated for the non-parametric and AR1 forms; not read by the others. It is a count of bins, not an age: estimating up to age 6 means N_sel_bins = 6 when minage = 1 and 7 when minage = 0.
  • Time_varying_sel: Whether time-varying selectivity is estimated, for the logistic, double-logistic, descending-logistic and non-parametric forms. 0 or "Off" = no; 1 or "IID" = penalized deviates given Time_varying_sel_sd, or random effects with that sd estimated under fit_mod(random_sel = TRUE); 3 or "Block" = time blocks with no penalty; 4 or "RandomWalk" = random walk on both limbs (extending Dorn et al. 2018); 5 or "RandomWalkAscending" = random walk on the ascending portion of the double logistic only (Dorn et al. 2018). Value 2 ("AR1") is refused by data_check(); an autocorrelated deviation is a selectivity linkage, linkage_spec(~ ar1(1 | Year)). The switch as a whole is soft-deprecated in favour of that grammar.
  • Time_varying_sel_sd: The sd of the time-varying selectivity deviates. Under fit_mod(random_sel = FALSE) it is fixed at this value, per fleet. Under random_sel = TRUE the deviates are integrated out and the sd is estimated from this starting value; fleets sharing a Selectivity_index share one estimated sd started at the geometric mean of theirs. The 2DAR1 and 3DAR1 forms read it under every Time_varying_sel, as the conditional sd of their deviation field, so they always need a positive value.
  • Age_first_selected: First age selected (absolute age). Selectivity is 0 below it on an age-based fleet; on a length-based fleet younger ages are zeroed in the fleet’s age-length key, so no fish below this age are caught at any length (Stock Synthesis age pattern 11 to the plus group, or pattern 10 when the first age is 1).
  • Bin_first_selected: First length bin selected on a length-based fleet, a 1-based bin ordinal; selectivity is 0 below it. On an age-based fleet it is the deprecated spelling of Age_first_selected, read as age minage + Bin_first_selected - 1.

Selectivity penalty weights

Sel_curve_pen1/2/3 are penalty weights on a Gaussian sum-of-squares (weight⋅x2=x2/(2σ2)\text{weight}\cdot x^2 = x^2 / (2\sigma^2)), so you may instead supply a standard deviation, which sets the matching Sel_curve_pen column to weight=1/(2σ2)\text{weight} = 1/(2\sigma^2). A Sel_curve_pen you set directly is never overwritten.

Which form reads which slot, and what it charges:

Slot SD column Reads the sign? NonParametric (2) NonParametricPM (9) NonParametricIntegrable (13) LogisticPM (11)
Sel_curve_pen1 Sel_shape_sd only on 9 under Sel_shape_mode = "Directional" shape, on the realized curve shape, on the realized curve shape, on the base curve random walk on realized log-selectivity
Sel_curve_pen2 Sel_curvature_sd no 2nd-difference curvature, on the realized curve 2nd-difference curvature, on the realized curve 2nd-difference curvature, on the base curve not read
Sel_curve_pen3 Sel_devmag_sd no not read deviation magnitude not read random walk on the age-1 deviates

Realized or base. Forms 2 and 9 charge the shape and curvature penalties on the realized curve, accumulated over sexes and years (form 2 under "IID" or "RandomWalk", form 9 from Sel_start_year under "RandomWalk"; 9 refuses "IID"). Form 13 charges them once per sex on the base coefficients. The same weight therefore bites harder on a time-varying 2 or 9; retune rather than copy one across forms.

Whether a value you set has any effect depends on:

  • The direction. Sel_shape_dir = "Increasing" is implemented only by NonParametricPM (9) under Sel_shape_mode = "Directional", where it moves the one-sided penalty from the decreasing side to the increasing one. Everywhere else, including 9 under "Smooth" (two-sided), the weight is applied as written, so "Increasing" is refused rather than silently negating it.
  • The sign. A weight multiplies a squared deviation, so a negative one rewards that deviation. data_check() refuses a negative Sel_curve_pen wherever the template reads it as a weight, which leaves four cases it does not refuse: the directional case above, a Fleet_type = "Off" fleet (charged no selectivity penalty at all), a fleet that follows another’s Selectivity_index and shares its selectivity form (the group’s penalty is charged once, on the lead), and a slot charged on deviates the fleet does not estimate, per the next point.
  • Whether the deviates exist. The three cells above marked as random walks or deviation magnitude are charged on the time-varying deviates, so under Time_varying_sel = "Off" they are identically zero and the weight is never read. Forms 2 and 13 do estimate deviates, but score them with a Gaussian density on Time_varying_sel_sd, which is why they never read slot 3.

The 2D/3D-AR1 forms (6/7) reuse Sel_curve_pen1/2/3 for logit-scale correlations, not weights, and keep those columns. The Hake form (5) reads no Sel_curve_pen slot.

Fixed selectivity

Input: Selectivity = 0 or "Fixed", with selectivity-at-age supplied in emp_sel. The last hindcast year supplied for a fleet and sex is held through the projection.

Non-parametric (Type 1)

Input: Selectivity = 2 or "NonParametric", N_sel_bins = 6, Sel_curve_pen1 = 12.5, Sel_curve_pen2 = 200, and Age_first_selected = 1. See Selectivity penalty weights above for the Sel_curve_pen slots and the standard-deviation columns that set them.

Equation: selfisa=eϕfisasel_{f_i sa}=e^{\phi_{f_isa}}

Logistic

Input: Selectivity = 1 or "Logistic", N_sel_bins = NA, Time_varying_sel = 0, and Time_varying_sel_sd = NA

Equation: selfisa=1/(1+e−Slpfi(a−Inffi))sel_{f_i sa}=1/(1+e^{-Slp_{f_i} (a-Inf_{f_i} ) } )

Time-varying logistic

Input: Selectivity = 1 or "Logistic", N_sel_bins = NA, and Time_varying_sel_sd = 0.1 or another starting value.

Equation: selfisa=1/(1+e−(Slpfi+eϕfisyslp)(a−(Inffi+ϕfisyInf)))sel_{f_i sa}=1/(1+e^{-(Slp_{f_i}+e^{\phi_{f_i sy}^{slp} } ) (a-(Inf_{f_i}+\phi_{f_i sy}^{Inf} ) ) } ) Penalized likelihood: Time_varying_sel = 1 ϕfisy∼N(0,σfiϕ)\phi_{f_i sy} \sim N(0,\sigma^{\phi}_{f_i}) Random effect: Time_varying_sel = 1 with fit_mod(random_sel = TRUE), where the deviations are integrated out by the Laplace approximation and σ̂fiϕ\hat\sigma^{\phi}_{f_i} is estimated rather than fixed at Time_varying_sel_sd ϕfisy∼N(0,σ̂fiϕ)\phi_{f_i sy} \sim N(0,\hat\sigma^{\phi}_{f_i}) Block: Time_varying_sel = 3, where the main parameters are set to 0 and ϕfisy=ϕfisyblock\phi_{f_i sy} = \phi_{f_i sy_{block}} Penalized likelihood random walk: Time_varying_sel = 4 ϕfisy−ϕfisy−1∼N(0,σfiϕ)\phi_{f_i sy}-\phi_{f_i sy-1} \sim N(0,\sigma^{\phi}_{f_i})

Double logistic

Input: Selectivity = 3 or "DoubleLogistic", N_sel_bins = NA, Time_varying_sel = 0, and Time_varying_sel_sd = NA

Equation: selfisa=1/(1+e−Slp1fi(a−Inf1fi))(1−1/(1+e−Slp2fi(a−Inf2fi)))sel_{f_i sa}=1/(1+e^{-Slp1_{f_i} (a-Inf1_{f_i} ) } )(1-1/(1+e^{-Slp2_{f_i} (a-Inf2_{f_i} ) } ))

Time-varying double logistic 1 (ascending and descending time-varying parameters)

selfisa=1/(1+e−(Slp1fi+eϕfisyslp1)(a−(Inf1fi+ϕfisyInf1)))(1−1/(1+e−(Slp2fi+eϕfisyslp2)(a−(Inf2fi+ϕfisyInf2))))sel_{f_i sa}=1/(1+e^{-(Slp1_{f_i}+e^{\phi_{f_i sy}^{slp1} } ) (a-(Inf1_{f_i}+\phi_{f_i sy}^{Inf1} ) ) } )(1-1/(1+e^{-(Slp2_{f_i}+e^{\phi_{f_i sy}^{slp2} } ) (a-(Inf2_{f_i}+\phi_{f_i sy}^{Inf2} ) ) } ))

The four deviate structures (Time_varying_sel 1 penalized or as a random effect, 3 block, and 4 random walk) are as under Time-varying logistic above.

Time-varying double logistic 2 (random walk ascending-time varying parameters)

Input: Selectivity = 3 or "DoubleLogistic", N_sel_bins = NA, Time_varying_sel = 5, and Time_varying_sel_sd = 0.05 or another starting value

Equation: selfisa=1/(1+e−(Slp1fi+eϕfisyslp1)(a−(Inf1fi+ϕfisyInf1)))(1−1/(1+e−Slp2fi(a−Inf2fi)))sel_{f_i sa}=1/(1+e^{-(Slp1_{f_i}+e^{\phi_{f_i sy}^{slp1} } ) (a-(Inf1_{f_i}+\phi_{f_i sy}^{Inf1} ) ) } )(1-1/(1+e^{-Slp2_{f_i} (a-Inf2_{f_i} ) } ))

ϕfisy−ϕfisy−1∼N(0,σfiϕ)\phi_{f_i sy} - \phi_{f_i sy-1} \sim N(0,\sigma^{\phi}_{f_i})

Descending logistic

Input: Selectivity = 4 or "DescendingLogistic", N_sel_bins = NA, Time_varying_sel = 0, and Time_varying_sel_sd = NA

Equation: selfisa=1−1/(1+e−Slp2fi(a−Inf2fi))sel_{f_i sa}=1-1/(1+e^{-Slp2_{f_i} (a-Inf2_{f_i} ) } )

Time-varying descending logistic

Input: Selectivity = 4 or "DescendingLogistic", N_sel_bins = NA, Time_varying_sel = 1, and Time_varying_sel_sd = 0.05 or another starting value

Equation: selfisa=1−1/(1+e−(Slp2fi+eϕfisyslp2)(a−(Inf2fi+ϕfisyInf2)))sel_{f_i sa}=1-1/(1+e^{-(Slp2_{f_i}+e^{\phi_{f_i sy}^{slp2} } ) (a-(Inf2_{f_i}+\phi_{f_i sy}^{Inf2} ) ) } )

The four deviate structures are as under Time-varying logistic above.

Non-parametric (Type 2)

For each age a≥Amina \geq A_{min} there is an incremental selectivity parameter pfisayp_{f_i say} for fleet fif_i, and selectivity at age is:

$$sel_{f_i sa}=e^{sel^{`}_{f_i sa} - max(sel^{`}_{f_i sa})}$$ where $$ sel^{`}_{f_i sa} = \sum_{i=A_{min}}^a p_{f_i sa}$$ Selectivity is 0 for a<Amina < A_{min}, and pfisa=0p_{f_i sa} = 0 from minage + N_sel_bins, so selectivity is constant beyond the last estimated bin. minage, set in the data, is the youngest age modeled.

Input: Selectivity = 5 or "Hake", N_sel_bins = 6, Time_varying_sel = NA, Time_varying_sel_sd = NA, and Age_first_selected =AminA_{min}

Time-varying non-parametric (Type 2 for hake)

As above, but deviations on pap_a carry annual changes in selectivity, given a fixed or estimated standard deviation (σfiϕ\sigma^{\phi}_{f_i}): pfisay=pfisa+ϕfisayp_{f_i say}=p_{f_i sa}+\phi_{f_i say}

Penalized likelihood: Time_varying_sel = 1 ϕfisy∼N(0,σfiϕ)\phi_{f_i sy} \sim N(0,\sigma^{\phi}_{f_i}) Random effect: Time_varying_sel = 1 with fit_mod(random_sel = TRUE), as under Time-varying logistic ϕfisy∼N(0,σ̂fiϕ)\phi_{f_i sy} \sim N(0,\hat\sigma^{\phi}_{f_i})

Catchability parameterizations

Catchability is controlled by the following fleet_control columns:

  • Catchability_index Fleets given the same value share one catchability parameter.
  • Catchability Catchability form: 0 or “Fixed” = fixed at Catchability_init; 1 or “Estimated” = a single free parameter; 2 or “Estimated-with-prior” = a single free parameter with a prior; 3 or “Analytical” = q solved in closed form as the maximum likelihood q for the fleet’s Index_distribution (refused under TruncatedNormal); 4 or “PowerEquation” = power equation, declared but not yet implemented; 5 or “Environmental” = linear equation log(q_y) = q_mu + beta * index_y; 6 or “AR1” = refused by data_check(); express the Rogers et al. (2024) form as a q linkage with ar1(1 | Year) and observe =; 7 or “AnalyticalArith” = arithmetic-mean analytical q, the AMAK/ebswp form, paired with the MVN survey likelihood.
  • Catchability_init Starting or fixed value for catchability
  • Catchability_prior_sd Log-scale SD of the q prior: dnorm(log_q, log(Catchability_init) - bias_adjust_proc * sd^2/2, sd)
  • Time_varying_q Whether a time-varying q is estimated. 0 = no; 1 = penalized deviate; 2 = AR1 (refused by data_check()); 3 = time blocks with no penalty; 4 = random walk from the mean following Dorn et al. 2018 (dnorm(q_y - q_y-1, 0, sigma)). Under Catchability = 5 it instead holds the env_data index for log(q_y) = q_mu + beta * index_y.
  • Time_varying_q_sd Fixed or starting sd of the time-varying q deviations, read under Time_varying_q 1 and 4 and estimated under fit_mod(random_q = TRUE)

Linear time-invariant catchability formulations

All take Time_varying_q = 0.

Catchability = 0 fixes qfiq_{f_i} at Catchability_init.

Catchability = 1 A free parameter q̂fi\hat{q}_{f_i} per index fleet fif_i

qfi=q̂fiq_{f_i} = \hat{q}_{f_i}

Catchability = 2 As above, with a lognormal prior on qq

log(q̂fi)∼N(log(Qprior)−b⋅Qsdprior2/2,Qsdprior),b=𝚋𝚒𝚊𝚜_𝚊𝚍𝚓𝚞𝚜𝚝_𝚙𝚛𝚘𝚌 log(\hat{q}_{f_i}) \sim N\left(log(Q\ prior) - b \cdot Q\ sd\ prior^2/2,\ Q\ sd\ prior\right), \quad b = \texttt{bias\_adjust\_proc}

Q prior (Catchability_init) is the prior mean of qq under fit_control(bias_adjust_proc = TRUE), the default, and its median otherwise; Q sd prior is on the log scale.

Catchability = 3 q̂fi\hat{q}_{f_i} is the closed-form maximum likelihood estimate under the fleet’s index likelihood (Index_distribution). Write Ĩfi,y\tilde{I}_{f_i,y} for the predicted index above with q=1q = 1 (it uses Ñ\tilde{N}, so survey timing and the fishery year-average are already handled), Ifi,yI_{f_i,y} for the observed index, and sum over the nn hindcast years with an observation.

Under the lognormal likelihood q̂\hat{q} is the geometric mean of Walters and Ludwig (1994), adjusted for the bias correction. With dy=log(Ifi,y/Ĩfi,y)d_y = log(I_{f_i,y} / \tilde{I}_{f_i,y}) and bb = bias_adjust_obs (the lognormal log-scale mean carries −bσ2/2-b\sigma^2/2):

  • time-invariant index SD (estimated or analytical): log(q̂fi)=1n∑ydy+bσfi2/2log(\hat{q}_{f_i}) = \frac{1}{n}\sum_y d_y + b\,\sigma^{2}_{f_i}/2
  • index SD input by year: log(q̂fi)=∑ydyσfiy2/∑y1σfiy2+bσ‾fi2/2,σ‾fi2=n/∑y1σfiy2log(\hat{q}_{f_i}) = \sum_y \frac{d_y}{\sigma^{2}_{f_iy}} \Big/ \sum_y \frac{1}{\sigma^{2}_{f_iy}} + b\,\bar{\sigma}^{2}_{f_i}/2, \qquad \bar{\sigma}^{2}_{f_i} = n \Big/ \sum_y \frac{1}{\sigma^{2}_{f_iy}} the harmonic mean of the yearly variances.

With Estimate_index_sd = 2 the variance is σfi2=1n∑y(dy−d‾)2\sigma^{2}_{f_i} = \frac{1}{n}\sum_y (d_y - \bar{d})^2, d‾\bar{d} the mean of dyd_y, so q̂\hat{q} and σ\sigma are their joint maximum likelihood estimate.

Walters, C. and Ludwig, D. (1994) ‘Calculation of Bayes posterior probability distributions for key population parameters’, Canadian Journal of Fisheries and Aquatic Sciences, 51(3), pp. 713-722, doi:10.1139/f94-071.

Under the Normal likelihood, with the absolute SD σfiy\sigma_{f_iy} input by year or estimated, q̂\hat{q} is the weighted least-squares estimate: q̂fi=∑yIfi,yĨfi,yσfiy2/∑yĨfi,y2σfiy2\hat{q}_{f_i} = \sum_y \frac{I_{f_i,y}\,\tilde{I}_{f_i,y}}{\sigma^{2}_{f_iy}} \Big/ \sum_y \frac{\tilde{I}^{2}_{f_i,y}}{\sigma^{2}_{f_iy}} Under MVN and MVNORM, with the fleet’s covariance Σfi\Sigma_{f_i} over the same years, it is the generalized least-squares estimate: q̂fi=Ĩfi′Σfi−1IfiĨfi′Σfi−1Ĩfi\hat{q}_{f_i} = \frac{\tilde{I}_{f_i}' \Sigma_{f_i}^{-1} I_{f_i}}{\tilde{I}_{f_i}' \Sigma_{f_i}^{-1} \tilde{I}_{f_i}} A TruncatedNormal likelihood has no closed-form qq, because its truncation term depends on qq, so data_check() refuses Catchability = 3 there.

Each estimate is solved for the current values of the other parameters, random effects included, so with random effects it is not the qq that maximizes the likelihood with them integrated out, and its objective should not be compared with that of a fit that estimates qq. The MVN/MVNORM estimate is not forced positive: with a strongly correlated Σ\Sigma it can go negative at parameter values far from the best fit.

Time-varying catchability formulations

Under Catchability = 2 the prior above still applies to mean catchability.

Annual catchability estimated via penalized likelihood or as random effects

Catchability %in% c(1:2) and Time_varying_q %in% c(1, 4) q̂fiy=eq‾fi+ωfiy\hat{q}_{f_iy} = e^{\bar{q}_{f_i}+ \omega_{f_iy}}ωfiy∼N(0,\omega_{f_iy} \sim N(0,Time_varying_q_sd)) under 1 (IID), or ωfiy−ωfi,y−1∼N(0,\omega_{f_iy} - \omega_{f_i,y-1} \sim N(0,Time_varying_q_sd)) under 4 (random walk), with Time_varying_q_sd either fixed or estimated under fit_mod(random_q = TRUE)

Catchability time-blocks

Catchability %in% c(1:2), Time_varying_q = 3, with the blocks taken from index_data. q̂fiy=eωfiblocky\hat{q}_{f_iy} = e^{\omega_{f_i block_y}}

Annual catchability via random walk

Catchability %in% c(1:2), Time_varying_q = 4 q̂fiy=eq‾fi+ωfiy\hat{q}_{f_iy} = e^{\bar{q}_{f_i}+ \omega_{f_iy}}ωfiy∼N(ωfiy−1,\omega_{f_iy} \sim N(\omega_{f_iy-1},Time_varying_q_sd))

References

  • Cheng, M.L.H., Thorson, J.T., Ianelli, J.N., Cunningham, C.J. (2023). Unlocking the triad of age, year, and cohort effects for stock assessment: demonstration of a computationally efficient and reproducible framework using weight-at-age. Fisheries Research, 266, 106755.
  • Curti, K.L., Collie, J.S., Legault, C.M., Link, J.S. (2013). Evaluating the performance of a multispecies statistical catch-at-age model. Canadian Journal of Fisheries and Aquatic Sciences, 70, 470-484.
  • Dorn, M., Aydin, K., Fissel, B., Palsson, W., Spalinger, K., Stienessen, S., Williams, K., Zador, S. (2018). Assessment of the walleye pollock stock in the Gulf of Alaska. In: Stock assessment and fishery evaluation report for the groundfish resources of the Gulf of Alaska. North Pacific Fishery Management Council, Anchorage, AK.
  • Holsman, K.K., Aydin, K. (2015). Comparative methods for evaluating climate change impacts on the foraging ecology of Alaskan groundfish. Marine Ecology Progress Series, 521, 217-235.
  • Holsman, K.K., Ianelli, J., Aydin, K., Punt, A.E., Moffitt, E.A. (2016). A comparison of fisheries biological reference points estimated from temperature-specific multi-species and single-species climate-enhanced stock assessment models. Deep Sea Research Part II, 134, 360-378.
  • Ianelli, J., Kotwicki, S., Honkalehto, T., McCarthy, A., Stienessen, S., Holsman, K., Siddon, E., Fissel, B. (2018). Assessment of the walleye pollock stock in the Eastern Bering Sea. In: Stock assessment and fishery evaluation report for the groundfish resources of the Bering Sea/Aleutian Islands regions. North Pacific Fishery Management Council, Anchorage, AK.
  • Kitchell, J.F., Stewart, D.J., Weininger, D. (1977). Applications of a bioenergetics model to yellow perch (Perca flavescens) and walleye (Stizostedion vitreum vitreum). Journal of the Fisheries Research Board of Canada, 34, 1922-1935.
  • Magnússon, K.G. (1995). An overview of the multispecies VPA — theory and applications. Reviews in Fish Biology and Fisheries, 5, 195-212.
  • Methot, R.D., Wetzel, C.R. (2013). Stock synthesis: a biological and statistical framework for fish stock assessment and fishery management. Fisheries Research, 142, 86-99.
  • Rogers, L.A., Monnahan, C.C., Williams, K., Jones, D.T., Dorn, M.W. (2024). Climate-driven changes in the timing of spawning and the availability of walleye pollock (Gadus chalcogrammus) to assessment surveys in the Gulf of Alaska. ICES Journal of Marine Science, 82(1), fsae005.
  • Stewart, D.J., Weininger, D., Rottiers, D.V., Edsall, T.A. (1983). An energetics model for lake trout, Salvelinus namaycush: application to the Lake Michigan population. Canadian Journal of Fisheries and Aquatic Sciences, 40, 681-698.
  • Taylor, I.G., Grandin, C., Hicks, A.C., Taylor, N., Cox, S. (2015). Status of the Pacific hake (whiting) stock in U.S. and Canadian waters in 2015. Joint Technical Committee of the U.S. and Canada Pacific Hake/Whiting Agreement; National Marine Fisheries Service; Fisheries and Oceans Canada.
  • Thornton, K.W., Lessem, A.S. (1978). A temperature algorithm for modifying biological rates. Transactions of the American Fisheries Society, 107, 284-287.
  • Thorson, J.T., Johnson, K.F., Methot, R.D., Taylor, I.G. (2017). Model-based estimates of effective sample size in stock assessment models using the Dirichlet-multinomial distribution. Fisheries Research, 192, 84-93.
  • Tsehaye, I., Jones, M.L., Bence, J.R., Brenden, T.O., Madenjian, C.P., Warner, D.M. (2014). A multispecies statistical age-structured model to assess predator-prey balance: application to an intensively managed Lake Michigan pelagic fish community. Canadian Journal of Fisheries and Aquatic Sciences, 71, 627-644.
  • Walters, C., Ludwig, D. (1994). Calculation of Bayes posterior probability distributions for key population parameters. Canadian Journal of Fisheries and Aquatic Sciences, 51, 713-722.
  • Xu, H., Thorson, J.T., Methot, R.D., Taylor, I.G. (2019). A new semi-parametric method for autocorrelated age- and time-varying selectivity in age-structured assessment models. Canadian Journal of Fisheries and Aquatic Sciences, 76, 268-285.