fitTMB: Optimize a TMB model and package results

Description Usage Arguments Examples

View source: R/glmmTMB.R

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

1
fitTMB(TMBStruc)

Arguments

TMBStruc

a list contain

Examples

1
2
3
4
m0 <- glmmTMB(count ~ mined + (1|site),
             family=poisson, data=Salamanders, doFit=FALSE)
names(m0)
fitTMB(m0)

Example output

 [1] "data.tmb"    "parameters"  "mapArg"      "randomArg"   "grpVar"     
 [6] "condList"    "ziList"      "dispList"    "condReStruc" "ziReStruc"  
[11] "family"      "contrasts"   "respCol"     "allForm"     "fr"         
[16] "se"          "call"        "verbose"     "REML"        "map"        
[21] "sparseX"     "control"    
Formula:          count ~ mined + (1 | site)
Data: Salamanders
      AIC       BIC    logLik  df.resid 
 2215.699  2229.102 -1104.849       641 
Random-effects (co)variances:

Conditional model:
 Groups Name        Std.Dev.
 site   (Intercept) 0.5759  

Number of obs: 644 / Conditional model: site, 23

Fixed Effects:

Conditional model:
(Intercept)      minedno  
     -1.505        2.264  

glmmTMB documentation built on July 20, 2021, 9:06 a.m.