Skip to contents

Fit a model for each grid cell defined in grid_parameters where each grid cell has a different combination of fixed parameter values.

Usage

run_grid(
  data,
  grid_parameters,
  bounds,
  map = list(),
  random = c(),
  control = list(eval.max = 10000, iter.max = 10000)
)

Arguments

data

A list containing the data created using the get_data function.

grid_parameters

A list of parameter inputs for each grid cell. This can be created using get_grid.

bounds

A list with lower and upper elements defining parameter bounds, created using the get_bounds function.

map

A list defining how to optionally collect and fix parameters. Default is an empty list.

random

A character vector defining the random effect parameters. Default is an empty vector.

control

A list of control parameters passed to nlminb. Default is list(eval.max = 10000, iter.max = 10000).

Value

A named list of fitted model objects (TMB ADFun objects), one for each grid cell.