sdmTMBcontrol {sdmTMB} | R Documentation |
Optimization control options
Description
sdmTMB()
and stats::nlminb()
control options.
Usage
sdmTMBcontrol(
eval.max = 2000L,
iter.max = 1000L,
normalize = FALSE,
nlminb_loops = 1L,
newton_loops = 1L,
mgcv = deprecated(),
quadratic_roots = FALSE,
start = NULL,
map_rf = deprecated(),
map = NULL,
lower = NULL,
upper = NULL,
censored_upper = NULL,
multiphase = TRUE,
profile = FALSE,
get_joint_precision = TRUE,
parallel = getOption("sdmTMB.cores", 1L),
...
)
Arguments
eval.max |
Maximum number of evaluations of the objective function allowed. |
iter.max |
Maximum number of iterations allowed. |
normalize |
Logical: use |
nlminb_loops |
How many times to run |
newton_loops |
How many Newton optimization steps to try after running
|
mgcv |
Deprecated Parse the formula with |
quadratic_roots |
Experimental feature for internal use right now; may
be moved to a branch. Logical: should quadratic roots be calculated? Note:
on the sdmTMB side, the first two coefficients are used to generate the
quadratic parameters. This means that if you want to generate a quadratic
profile for depth, and depth and depth^2 are part of your formula, you need
to make sure these are listed first and that an intercept isn't included.
For example, |
start |
A named list specifying the starting values for parameters. You
can see the necessary structure by fitting the model once and inspecting
|
map_rf |
Deprecated use |
map |
A named list with factor |
lower |
An optional named list of lower bounds within the optimization.
Parameter vectors with the same name (e.g., |
upper |
An optional named list of upper bounds within the optimization. |
censored_upper |
An optional vector of upper bounds for
|
multiphase |
Logical: estimate the fixed and random effects in phases? Phases are usually faster and more stable. |
profile |
Logical: should population-level/fixed effects be profiled
out of the likelihood? These are then appended to the random effects
vector without the Laplace approximation. See |
get_joint_precision |
Logical. Passed to |
parallel |
Argument currently ignored. For parallel processing with 3
cores, as an example, use |
... |
Anything else. See the 'Control parameters' section of
|
Details
Usually used within sdmTMB()
. For example:
sdmTMB(..., control = sdmTMBcontrol(newton_loops = 2))
Value
A list of control arguments
Examples
sdmTMBcontrol()