glmmTMB (version 0.2.3)

glmmTMBControl: Control parameters for glmmTMB optimization

Description

Control parameters for glmmTMB optimization

Usage

glmmTMBControl(optCtrl = list(iter.max = 300, eval.max = 400),
  profile = FALSE, collect = FALSE)

Arguments

optCtrl

Passed as argument control to nlminb.

profile

Logical; Experimental option to improve speed and robustness when a model has many fixed effects

collect

Logical; Experimental option to improve speed by recognizing duplicated observations.

Details

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)).