Skip to contents

Computes age-specific harvest rates by fishery.

Usage

get_harvest_rate(
  y,
  s,
  first_yr,
  first_yr_catch,
  removal_switch_f,
  catch_obs_ysf,
  number_ysa,
  sel_fya,
  weight_fya,
  af_sliced_ysfa
)

Arguments

y, s

Year and season index.

first_yr, first_yr_catch

Model and catch start years.

removal_switch_f

Vector of slice-switch flags.

catch_obs_ysf

Observed catch by year-season-fishery.

number_ysa

3D array of numbers-at-age.

sel_fya

Selectivity array.

weight_fya

Weight-at-age.

af_sliced_ysfa

Sliced numbers-at-age.

Value

a list with age-specific harvest rates, fishery, and penalty term.