Skip to contents

Set up a legacy direct-anchor grid

Usage

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

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.4, 0.45, 0.5).

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 reproductive-output power parameter values. Psi scales relative reproductive contribution by age. Default is c(1.5, 1.75, 2).

Value

A named list of parameter inputs, one per grid cell. Each element fixes par_log_psi, par_log_m0, par_log_m10, and par_log_h in a copy of parameters.

Details

This helper assumes the direct-anchor mortality parameterization and requires every grid vector to be nonempty. It is not suitable for the length-based mortality model without modification.

Legacy status

These helpers predate canonical portable sbt_fit grid cells and the current provenance and biological-state gates. They are retained for compatibility and exploratory work. Production posterior grids should use run_grid_mcmc() and grid_mcmc_to_tmbfit().