Skip to contents

Set up model dimensions

Usage

Setup_Mod_Dim(
  years,
  ages,
  lens,
  n_regions,
  n_sexes,
  n_fish_fleets,
  n_srv_fleets,
  verbose = FALSE
)

Arguments

years

Numeric vector of years.

ages

Numeric vector of age classes.

lens

Numeric vector of length bins; can be set to 1 if length data are not modeled.

n_regions

Integer specifying the number of spatial regions.

n_sexes

Integer specifying the number of sexes.

n_fish_fleets

Integer specifying the number of fishery fleets.

n_srv_fleets

Integer specifying the number of survey fleets.

verbose

Logical flag indicating whether to print progress messages (default FALSE).

Value

A list containing three named elements:

data

List of data inputs dimensioned by the model dimensions.

parameters

List of model parameters initialized according to dimensions.

map

List of parameter mappings for model fitting.