Learn R Programming

glmmTMB (version 1.1.7)

fitTMB: Optimize a TMB model and package results

Description

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

Examples

Run this code
m0 <- glmmTMB(count ~ mined + (1|site),
             family=poisson, data=Salamanders, doFit=FALSE)
names(m0)
fitTMB(m0)

Run the code above in your browser using DataLab