Learn R Programming

glmmTMB (version 1.0.2.1)

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)

Arguments

TMBStruc

a list contain

Examples

Run this code
# NOT RUN {
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