Learn R Programming

glmmTMB (version 1.1.13)

Generalized Linear Mixed Models using Template Model Builder

Description

Fit linear and generalized linear mixed models with various extensions, including zero-inflation. The models are fitted using maximum likelihood estimation via 'TMB' (Template Model Builder). Random effects are assumed to be Gaussian on the scale of the linear predictor and are integrated out using the Laplace approximation. Gradients are calculated using automatic differentiation.

Copy Link

Version

Install

install.packages('glmmTMB')

Monthly Downloads

49,879

Version

1.1.13

License

AGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Mollie Brooks

Last Published

October 9th, 2025

Functions in glmmTMB (1.1.13)

.collectDuplicates

collapse duplicated observations
getME.glmmTMB

Extract or Get Generalize Components from a Fitted Mixed Effects Model
meatHC

Simple Cluster Based Meat Matrix Estimator
map.theta.propto

Set map values for theta to be fixed (NA) for propto
estfun.glmmTMB

Extract Empirical Estimating Functions
getGrpVar

Get Grouping Variable
getReStruc

Calculate random effect structure Calculates number of random effects, number of parameters, block size and number of blocks. Mostly for internal use.
formula.glmmTMB

Extract the formula of a glmmTMB object
mkTMBStruc

Extract info from formulas, reTrms, etc., format for TMB
priors

use of priors in glmmTMB
set_simcodes

helper function to modify simulation settings for random effects
sandwich

Sandwich Estimator based on Bread and Meat Matrices
nbinom2

Family functions for glmmTMB
getXReTrms

Create X and random effect terms from formula
terms.glmmTMB

Methods for extracting developer-level information from glmmTMB models
get_cor

transform correlation parameters to and from glmmTMB parameterization
get_autopar

retrieve current value of TMB autopar setting
print.VarCorr.glmmTMB

Printing The Variance and Correlation Parameters of a glmmTMB
predict.glmmTMB

prediction
spider_long

Spider data from CANOCO, long format
simulate_new

Simulate from covariate/metadata in the absence of a real data set (EXPERIMENTAL)
summary.glmmTMB

summary for glmmTMB fits
getCapabilities

List model options that glmmTMB knows about
numFactor

Factor with numeric interpretable levels.
getGroups.glmmTMB

Extract Grouping Factors from an Object
startParams

Change starting parameters, either by residual method or by user input (start)
glmmTMB

Fit Models with TMB
glmmTMBControl

Control parameters for glmmTMB optimization
profile.glmmTMB

Compute likelihood profiles for a fitted model
up2date

conditionally update glmmTMB object fitted with an old TMB version
weights.glmmTMB

Extract weights from a glmmTMB object
omp_check

Check OpenMP status
vcov.glmmTMB

Calculate Variance-Covariance Matrix for a Fitted glmmTMB model
reinstalling

Reinstalling binary dependencies
residuals.glmmTMB

Compute residuals for a glmmTMB object
reexports

Objects exported from other packages
ranef.glmmTMB

Extract Random Effects
simulate.glmmTMB

Simulate from a glmmTMB fitted model
sigma.glmmTMB

Extract residual standard deviation or dispersion parameter
vcovHC.glmmTMB

Cluster Robust Variance-Covariance Matrix Estimator
diagnose

diagnose model problems
as.theta.vcov

Get theta parameterisation of a covariance structure
.adjustX

Adjust a model matrix When not rank deficient, do nothing. When rank deficient matrix, drop columns.
confint.glmmTMB

Calculate confidence intervals
dof_KR

compute denominator degrees-of-freedom approximations
isLMM.glmmTMB

support methods for parametric bootstrapping
bread.glmmTMB

Bread Matrix for Sandwich Estimator
fitTMB

Optimize TMB models and package results, modularly
dtruncated_nbinom2

truncated distributions
family_params

Retrieve family-specific parameters
Anova.glmmTMB

Downstream methods
Salamanders

Repeated counts of salamanders in streams
Owls

Begging by Owl Nestlings
epil2

Seizure Counts for Epileptics - Extended
VarCorr.glmmTMB

Extract variance and correlation components
.checkRankX

Check for identifiability of fixed effects matrices X, Xzi, Xdisp. When rank_check='adjust', drop columns in X and remove associated parameters.
fixef

Extract fixed-effects estimates
format_sdvar

format columns corresponding to std. dev. and/or variance
formatVC

Format the 'VarCorr' Matrix of Random Effects