1University of Washington, Seattle, WA
2Alaska Fisheries Science Center, NOAA, Seattle, WA
3Alaska Fisheries Science Center, NOAA, Juneau, AK
Allows separation of both observation and process errors.
Observation equation:
E[Yt∣Xt]=g(Xt,θ)
Process equation:
E[Xt∣Xt−1]=h(Xt−1,θ)
Xt is the unobserved state at time step t and Yt are observations. θ is the vector of all unknown model parameters (fixed effects). Xt treated as random effects (Aeberhard et al. 2018).
Why use them? (Aeberhard et al. 2018, Stock and Miller, 2021)
Random effects in:
Stock and Miller et al., 2021
Yellowtail flounder on the US East Coast (Stock and Miller, 2021):
Limitations:
Great talk by Brian Stock and Tim Miller on WHAM.
To distribute abundance-at-age to abundance-at-age and length.
The mean length-at-age at the start of the year (y=1):
˜Ly,a=L∞+(L1−L∞)exp(−k(a−1))
and when y>1:
˜Ly,a={L1,if a=1˜Ly−1,a−1+(˜Ly−1,a−1−L∞)(exp(−k)−1)otherwise
Then, to calculate the mean length-at-age at any fraction of the year:
Ly,a=˜Ly,a+(˜Ly,a−L∞)(exp(−kfy)−1) fy is the year fraction.
Also, Ly,a and variation of length-at-age ( σa ) are used to calculate the age-length transition matrix (Stock Synthesis - SS - approach):
φy,l,a={Φ(L′min−Ly,aσy,a)for l=1Φ(L′l+1−Ly,aσy,a)−Φ(L′l−Ly,aσy,a)for 1<l<nL1−Φ(L′max−Ly,aσy,a)for l=nL
Random effects on growth parameters can be modeled:
. . .
log(L∞t)=μL∞+δ1,t
log(kt)=μk+δ2,t
log(L1t)=μL1+δ3,t
. . .
t represents year or cohort effects and can be iid or AR1.
For this case, mean length-at-age ( ˜La ) are assumed to be parameters and can be estimated. σa still needed.
. . .
Time variability can be modeled by including random effects:
log(˜Ly,a)=μ˜La+δa,y
δa,y can vary by year and age.
Optional when empirical weight-at-age not provided:
wl=Ω1lΩ2
Random effects on Ω1 and Ω2 can also be estimated (like growth parameters).
. . .
Then, we can calculate the population weight-at-age at any moment during the year:
ˆwy,a=∑lφy,l,awl
. . .
ˆwy,a can also be fitted to wy,a (empirical weight-at-age)
Originally, these selectivity-at-age functions were available:
age-specific: by age.logistic: increasing logistic.double-logisticdecreasing-logistic. . .
Variability by year and parameter autocorrelation.
We incorporated one extra option:
double-normal: SS-like (Methot and Wetzel, 2013). . .
But also some selectivity-at-length functions:
len-logistic: increasing logistic at lengthlen-decreasing-logisticlen-double-normalXt (unobserved environmental variable at time t ) can be linked to any parameter presented here (Stock and Miller, 2021).
Two options for the process model:
Xt+1|Xt∼N(Xt,σ2X)
σ2X is the process variance.
X1∼N(μX,σ2X1−ϕ2X)
Xt∼N(μX(1−ϕX)+ϕXXt−1,σ2X)
μX, σ2X, and ∣ϕX∣<1 are the marginal mean, conditional variance, and autocorrelation parameter.
Observations Yt are assumed to be normally distributed with mean Xt and variance σ2Yt:
Yt∣Xt∼N(Xt,σ2Yt)
σ2Yt treated as known or estimated.
An environmental covariate can be linked to a state (i.e. parameter):
Pt=Pexp(β1Xt)
P is the base state (parameter) value.
Other links are also available (polynomials). Lags can be modeled.
Using SS ( ss3sim, Anderson et al., 2014 ), we simulated data that was then incorporated into WHAM.
Simulate data:
We implemented three models in WHAM:
iid) on mean length-at-age (LAA)Models:
m1: random effects (by year) on L∞m2: random effects on mean length-at-age (LAA)m3: environmental variable (PDO), linked to L∞

Simulate data:
CAAL residuals:
Estimated selectivity-at-length:
Simulate data:
Contact:
gcorrea@uw.edu
giancarlo.correa@noaa.gov