Skip to contents

Constructs the selectivity-at-age array by fishery and year, incorporating initial values and changes.

Usage

get_selectivity(
  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_log_sel
)

Arguments

n_age

Total number of ages.

max_age

Maximum model age.

first_yr

Model start year.

first_yr_catch

Vector of first catch years per fishery.

sel_min_age_f, sel_max_age_f, sel_end_f

Logical vector indicating whether to extend the final selectivity across remaining ages.

sel_change_year_fy

Matrix fishery, year indicating change years.

par_log_sel

Vector of changes in selectivity (log-space).

Value

3D array fishery, year, age of selectivity values.