Skip to contents

Set up a grid

Usage

get_grid(
  parameters,
  m0 = c(0.5, 0.4, 0.45),
  m10 = c(0.065, 0.085, 0.105),
  h = c(0.55, 0.63, 0.72, 0.8),
  psi = c(1.75, 1.5, 2)
)

Arguments

parameters

A list containing the parameter inputs from which the grid will be created.

m0

Numeric vector of M0 (natural mortality at age 0) values to be included in the grid. Default is c(0.5, 0.4, 0.45).

m10

Numeric vector of M10 (natural mortality at age 10) values to be included in the grid. Default is c(0.065, 0.085, 0.105).

h

Numeric vector of steepness parameter values to be included in the grid. Default is c(0.55, 0.63, 0.72, 0.8).

psi

Numeric vector of psi (stock recruitment) values to be included in the grid. Default is c(1.75, 1.5, 2).

Value

A named list of parameter inputs ready to be passed to MakeADFun, with one element for each grid cell. Each element is a copy of the original parameters list with fixed values for par_log_psi, par_log_m0, par_log_m10, and par_log_h.

Examples

#parameters <- get_parameters(data = data)
#grid_parameters <- get_grid(parameters = parameters)