Skip to contents

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

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_sels_init_i

Vector of initial selectivity log-values.

par_sels_change_i

Vector of changes in selectivity (log-space).

Value

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