This function (called internally by glmmTMB) runs
the actual model optimization, after all of the appropriate structures
have been set up. It can be useful to run glmmTMB with
doFit=TRUE, adjust the components as required, and then
finish the fitting process with fitTMB (however, it is the
user's responsibility to make sure that any modifications
create an internally consistent final fitted object).
Usage
fitTMB(TMBStruc, doOptim = TRUE)
Arguments
TMBStruc
a list containing lots of stuff ...
doOptim
logical; do optimization? If FALSE, return TMB object