Uses Gerritsen et al (2006) method for predicting missing values in age length key. Currently disregards gear type and only uses QTR/SEMESETER/YEAR.

create_yr_semester_age_length_key(
  expandedLandings,
  ageLengthData,
  filterYrs,
  plusAge,
  referenceAge,
  printConvergence = F
)

Arguments

expandedLandings

Data frame. Landings expanded by length distribution

ageLengthData

Data frame. Age-length data from databases

filterYrs

Numeric scalar. The First year in which age length key is required

plusAge

Numeric scalar. Maximum age category. (eg , 10+)

referenceAge

Numeric scalar.Used in the GLM as the age against which all the other ages are estimated. It is typically the most abundant age.

printConvergence

Boolean. Should convergence messages from multinom be printed to console (Default = F)

Value

Data frame