Fit a model for each grid cell defined in grid_parameters where each
grid cell has a different combination of fixed parameter values.
Arguments
- data
A
listcontaining the data created using theget_datafunction.- grid_parameters
A
listof parameter inputs for each grid cell. For current MLE-grid work, create this withmake_mle_grid_parameters().get_grid()is retained for legacy direct-anchor grids.- bounds
Optional
listwithlowerandupperelements defining parameter bounds, created using theget_boundsfunction. IfNULL, bounds are computed separately for each grid cell.- map
A
listdefining how to optionally collect and fix parameters. Default is an emptylist.- random
A character
vectordefining the random effect parameters. Default is an emptyvector.- control
A
listof control parameters passed tonlminb. Default islist(eval.max = 10000, iter.max = 10000).- parallel
Retained for backward compatibility. The current implementation runs sequentially regardless of this value.
- n_passes
Integer number of repeated
nlminbpasses per grid cell. Default is3.- start
Optional numeric starting vector. If supplied, matching named elements are copied to each grid-cell starting vector.
- b0_start_step
Optional numeric multiplier used to increase
par_log_B0until the starting objective is finite. IfNULL, no B0 start adjustment is made.- b0_start_max
Numeric maximum total B0 start multiplier when
b0_start_stepis supplied. Default is10.- verbose
Logical. If
TRUE, print progress messages before each grid cell, after eachnlminbpass, and after each grid cell finishes.
Details
This is the current deterministic MLE-grid engine. Summarise its
results with summarise_mle_grid() and require
validate_mle_grid_state_records() to pass before fitted states are used
downstream. For posterior sampling within every grid cell, including
resumable on-disk checkpoints, use run_grid_mcmc().
