runMaturityYearByYear: Function for running maturity estimations year by year

View source: R/runMaturityYearByYear.R

runMaturityYearByYearR Documentation

Function for running maturity estimations year by year

Description

Function for running maturity estimations year by year

Usage

runMaturityYearByYear(
  cap,
  catch,
  initPar,
  min_age = 3,
  max_age = 4,
  plot = TRUE
)

Arguments

cap

data.frame, cap table. Should contain the following column names: meanlength(cm), 1,2,3,4,5 and year, where 1-4 are ages and 5 is a 5+ group.

catch

data.frame, catches data. Should contain 14 columns including age, year and the remaining 12 for each month.

initPar

data.frame, initial values for p1,p2,p3 and nu by year

min_age

integer. Minimum age

max_age

integer. Maximum age

plot

logical, print plot (TRUE or FALSE)

Value

list/maturitybyyears object, containing estimation output and results

Examples

## Not run: 
data(cap)
data(catch)
data(maturityInitialParameters)
result <- runMaturityYearByYear(cap,catch,
                                initPar = dplyr::filter(maturityInitialParameters,
                                                        agegr == "3-4"),
                                plot = TRUE)

## End(Not run)

IMRpelagic/bifrost documentation built on Oct. 17, 2023, 7:11 a.m.