Calculate Aerial Survey Likelihood (Version 1)
Usage
get_aerial_survey_like_v1(
aerial_switch,
aerial_years,
aerial_obs,
aerial_cv,
aerial_cov,
par_aerial_tau,
par_log_aerial_sel,
number_ysa,
weight_fya
)Arguments
- aerial_switch
An
integerscalar, aerial survey selectivity mode (0-4).- aerial_years
An
integervector, year indices for aerial survey observations.- aerial_obs
A
numericvector, observed aerial survey indices.- aerial_cv
A
numericvector, coefficients of variation for observations.- aerial_cov
A
numericmatrix of dimensions \[n_aerial, n_aerial\], covariance matrix.- par_aerial_tau
A
numericscalar, additional variance parameter.- par_log_aerial_sel
A
numericvector of length 2, log-selectivity parameters for ages 2 and 4.- number_ysa
A
numericarray of dimensions \[n_year + 1, n_season, n_age\], numbers-at-age.- weight_fya
A
numericarray of dimensions \[n_fishery, n_year1, n_age\], weight-at-age.
Value
A list containing:
- pred
Predicted aerial survey values (numeric vector)
- resid
Residuals (log scale, numeric vector)
- lp_aerial_tau
Log-likelihood component for tau (numeric scalar)
- lp
Mahalanobis log-likelihood (numeric scalar)
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.
