Calculate Troll Survey Likelihood (Version 1)
Arguments
- troll_switch
An
integerscalar, switch to turn on (>0) or off (0) the troll likelihood.- troll_years
An
integervector, year indices for troll survey observations.- troll_obs
A
numericvector, observed troll survey values.- troll_sd
A
numericvector, observation error standard deviations.- troll_tau
A
numericscalar, additional variance parameter.- number_ysa
A
numericarray of dimensions \[n_year + 1, n_season, n_age\], numbers-at-age.
Value
A list containing:
- pred
Predicted troll survey values (numeric vector)
- resid
Standardized residuals (numeric vector)
- lp
Negative log-likelihood values (numeric vector)
Legacy status
These functions reproduce historical version-1 assessment code for audit
and comparison. They are not the production SBT objective, do not implement
the current data, mortality, harvest-wall, or biological-state contracts,
and receive only compatibility maintenance. New analyses should use
get_data(), sbt_model(), and the current component helpers.
