Calculates the likelihood for observed age compositions.
Usage
get_age_like(
af_switch,
removal_switch_f,
af_year,
af_fishery,
af_min_age,
af_max_age,
af_obs,
af_n,
par_log_af_alpha,
catch_pred_fya
)
Arguments
- af_switch
Vector of year indices.
- removal_switch_f
Vector of year indices.
- af_year
Vector of year indices.
- af_fishery
Vector of fishery indices.
- af_min_age
Vector of minimum age.
- af_max_age
Vector of maximum age.
- af_obs
Matrix of observed proportions-at-age.
- af_n
Vector of effective sample sizes.
- par_log_af_alpha
Vector of effective sample sizes.
- catch_pred_fya
3D array fishery, year, age of predicted catch.