Compute Selectivity-at-Age Across Years
Usage
get_selectivity_v1(
n_age,
max_age,
first_yr,
first_yr_catch,
sel_min_age_f,
sel_max_age_f,
sel_end_f,
sel_change_year_fy,
par_sels_init_i,
par_sels_change_i
)Arguments
- n_age
An
integerscalar, total number of ages in the model.- max_age
An
integerscalar, maximum model age.- first_yr
An
integerscalar, model start year.- first_yr_catch
A
numericvector of length 6, first catch year for each fishery.- sel_min_age_f
A
numericvector of length 6, minimum age of selectivity for each fishery.- sel_max_age_f
A
numericvector of length 6, maximum age of selectivity for each fishery.- sel_end_f
A
logicalornumericvector of length 6, indicating whether to extend the final selectivity across remaining ages for each fishery.- sel_change_year_fy
A
numericmatrix of dimensions \[6, n_year\], indicating change years for selectivity (1 = change, 0 = no change).- par_sels_init_i
A
numericvector of initial selectivity log-values.- par_sels_change_i
A
numericvector of changes in selectivity (log-space).
Value
A 3D array of dimensions \[n_fishery, n_year, n_age\]
containing
selectivity values (mean-normalized to 1).
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.
