Computes likelihood for observed length compositions using ALKs.
Usage
get_cpue_length_like(
lf_switch,
cpue_years,
cpue_lfs,
cpue_n,
par_log_lf_alpha,
number_ysa,
sel_fya,
alk_ysal
)
Arguments
- lf_switch
Vectors of indices for observations.
- cpue_years
Vectors of indices for observations.
- cpue_lfs
Matrix of observed length proportions.
- cpue_n
Vector of effective sample sizes.
- par_log_lf_alpha
Vectors of indices for observations.
- number_ysa
3D array of predicted catch.
- sel_fya
3D array of predicted catch.
- alk_ysal
4D array year, season, age, length_bin of ALKs.