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

An integer specifying the total number of ages in the model.

max_age

An integer specifying the maximum model age.

first_yr

An integer specifying the model start year.

first_yr_catch

A vector of integers specifying the first catch year for each fishery.

sel_min_age_f

A vector of integers specifying the minimum age for selectivity estimation for each fishery.

sel_max_age_f

A vector of integers specifying the maximum age for selectivity estimation for each fishery.

sel_end_f

A logical vector indicating whether to extend the final selectivity value across remaining ages for each fishery.

sel_change_year_fy

A matrix with dimensions (fishery, year) indicating change years for selectivity.

par_log_sel

A list of matrices containing changes in selectivity values in log-space.

Value

A 3D array with dimensions (fishery, year, age) of selectivity values.