Calculate Age-Frequency Likelihood (Version 1)
Arguments
- af_year
An
integervector, year indices for age-frequency observations.- af_fishery
An
integervector, fishery indices for observations.- af_min_age
An
integervector, minimum ages for aggregation.- af_max_age
An
integervector, maximum ages for aggregation.- af_obs
A
numericmatrix of dimensions \[n_af, n_age\], observed age frequencies.- af_n
A
numericvector, sample sizes for each observation.- catch_pred_fya
A
numericarray of dimensions \[n_fishery, n_year + 1, n_age\], predicted catch-at-age.
Value
A list containing:
- pred
Predicted age frequencies (numeric matrix)
- 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.
