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

An integer scalar, total number of ages in the model.

max_age

An integer scalar, maximum model age.

first_yr

An integer scalar, model start year.

first_yr_catch

A numeric vector of length 6, first catch year for each fishery.

sel_min_age_f

A numeric vector of length 6, minimum age of selectivity for each fishery.

sel_max_age_f

A numeric vector of length 6, maximum age of selectivity for each fishery.

sel_end_f

A logical or numeric vector of length 6, indicating whether to extend the final selectivity across remaining ages for each fishery.

sel_change_year_fy

A numeric matrix of dimensions \[6, n_year\], indicating change years for selectivity (1 = change, 0 = no change).

par_sels_init_i

A numeric vector of initial selectivity log-values.

par_sels_change_i

A numeric vector 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).