Control parameters for glmmTMB optimization
glmmTMBControl(optCtrl = list(iter.max = 300, eval.max = 400),
profile = FALSE, collect = FALSE)
Passed as argument control
to nlminb
.
Logical; Experimental option to improve speed and robustness when a model has many fixed effects
Logical; Experimental option to improve speed by recognizing duplicated observations.
The general non-linear optimizer nlminb
is used by
glmmTMB
for parameter estimation. It may sometimes be
necessary to tweak some tolerances in order to make a model
converge. For instance, the warning ‘iteration limit reached
without convergence’ may be fixed by increasing the number of
iterations using something like
glmmTMBControl(optCtrl=list(iter.max=1e3,eval.max=1e3))
.
The argument profile
allows glmmTMB
to use some special
properties of the optimization problem in order to speed up estimation
in cases with many fixed effects. Enable this option using
glmmTMBControl(profile=TRUE)
.
Control parameters may depend on the model specification, because each
control component is evaluated inside TMBStruc
, the output
of mkTMBStruc
. To specify that profile
should be
enabled for more than 5 fixed effects one can use
glmmTMBControl(profile=quote(length(parameters$beta)>=5))
.