
CPUE index likelihood (multi-index)
get_cpue_like.RdComputes the likelihood for one or more standardised CPUE/survey indices
using a log-linear model. Each index has its own catchability (q),
extra variance (tau), power parameter (omega), and effort creep.
Mean-centering of predicted CPUE is performed within each index.
Time steps are one-based: (year_index - 1) * n_season + season_index.
Arguments
- cpue_data
a
listof data inputs. Must contain:- cpue_data
data.frame with columns
ts,fishery,value,se,units, andindex.- cpue_switch
integer switch (0 = skip likelihood).
- n_index
integer number of distinct indices.
- parameters
a
listof parameter values. Must contain:- log_cpue_q
numeric vector
[n_index].- log_cpue_tau
numeric vector
[n_index].- log_cpue_omega
numeric vector
[n_index].
- number_ysa
a 3D
array[n_year, n_season, n_age]of numbers-at-age.- sel_fya
a 3D
array[n_fishery, n_year, n_age]of selectivity by fishery, year, and age.- weight_fya
a 3D
array[n_fishery, n_year, n_age]of weight-at-age by fishery and year.- cpue_switch
boolean flag to calculate the cpue likelihood.