Calculate CPUE Likelihood (Version 1)
Usage
get_cpue_like_v1(
cpue_switch,
cpue_a1 = 5,
cpue_a2 = 17,
cpue_years,
cpue_obs,
cpue_adjust,
cpue_sigma,
cpue_omega,
log_cpue_q,
number_ysa,
sel_fya
)Arguments
- cpue_switch
An
integerscalar, switch to turn on (>0) or off (0) the CPUE likelihood.- cpue_a1
An
integerscalar, minimum age for CPUE calculation (default 5).- cpue_a2
An
integerscalar, maximum age for CPUE calculation (default 17).- cpue_years
An
integervector, year indices for CPUE observations.- cpue_obs
A
numericvector, observed CPUE values.- cpue_adjust
A
numericvector, adjustment factors for CPUE.- cpue_sigma
A
numericscalar, observation error standard deviation.- cpue_omega
A
numericscalar, power parameter for abundance scaling.- log_cpue_q
A
numericscalar, log-catchability coefficient.- number_ysa
A
numericarray of dimensions \[n_year + 1, n_season, n_age\], numbers-at-age.- sel_fya
A
numericarray of dimensions \[n_fishery, n_year, n_age\], selectivity-at-age.
