Meta-analysis with the glmmTMB R package

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Williams, Coralie, McGillycuddy, Maeve, Brooks, Mollie, Bolker, Benjamin M., Mizuno, Ayumi, Yang, Yefeng, Viechtbauer, Wolfgang, Warton, David I., Nakagawa, Shinichi
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866918429739450368
author Williams, Coralie
McGillycuddy, Maeve
Brooks, Mollie
Bolker, Benjamin M.
Mizuno, Ayumi
Yang, Yefeng
Viechtbauer, Wolfgang
Warton, David I.
Nakagawa, Shinichi
author_facet Williams, Coralie
McGillycuddy, Maeve
Brooks, Mollie
Bolker, Benjamin M.
Mizuno, Ayumi
Yang, Yefeng
Viechtbauer, Wolfgang
Warton, David I.
Nakagawa, Shinichi
contents Meta-analytical models are typically formulated as a mixed-effects model where the sampling variances of the effect sizes are treated as known. In principle, such models could be fitted with standard mixed-modelling software such as the glmmTMB R package. This general-purpose package for generalized linear mixed models (GLMMs) provides flexibility in distributions and random effect covariance structures through the Template Model Builder (TMB). However, incorporating known sampling variances in the conventional inverse-variance formulation of meta-analysis was previously not easily accomplished in glmmTMB. Here, we introduce equalto, a new covariance structure in glmmTMB that allows users to supply a known sampling error variance-covariance matrix when fitting meta-analytic models. This enables explicit modelling of heteroscedasticity and dependence among sampling errors. The new implementation provides an alternative way to fit meta-analytic models, convenient for users already familiar with glmmTMB. Using simulations, we show that the new implementation produces model estimates identical to those from the established metafor package and illustrate its applicability with published meta-analyses in medicine, evolutionary ecology, and the social sciences. Further, this novel implementation in glmmTMB supports more flexible modelling of meta-analytical data, expanding the R toolkit available for evidence synthesis.
format Preprint
id arxiv_https___arxiv_org_abs_2604_04084
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Meta-analysis with the glmmTMB R package
Williams, Coralie
McGillycuddy, Maeve
Brooks, Mollie
Bolker, Benjamin M.
Mizuno, Ayumi
Yang, Yefeng
Viechtbauer, Wolfgang
Warton, David I.
Nakagawa, Shinichi
Computation
Methodology
Meta-analytical models are typically formulated as a mixed-effects model where the sampling variances of the effect sizes are treated as known. In principle, such models could be fitted with standard mixed-modelling software such as the glmmTMB R package. This general-purpose package for generalized linear mixed models (GLMMs) provides flexibility in distributions and random effect covariance structures through the Template Model Builder (TMB). However, incorporating known sampling variances in the conventional inverse-variance formulation of meta-analysis was previously not easily accomplished in glmmTMB. Here, we introduce equalto, a new covariance structure in glmmTMB that allows users to supply a known sampling error variance-covariance matrix when fitting meta-analytic models. This enables explicit modelling of heteroscedasticity and dependence among sampling errors. The new implementation provides an alternative way to fit meta-analytic models, convenient for users already familiar with glmmTMB. Using simulations, we show that the new implementation produces model estimates identical to those from the established metafor package and illustrate its applicability with published meta-analyses in medicine, evolutionary ecology, and the social sciences. Further, this novel implementation in glmmTMB supports more flexible modelling of meta-analytical data, expanding the R toolkit available for evidence synthesis.
title Meta-analysis with the glmmTMB R package
topic Computation
Methodology
url https://arxiv.org/abs/2604.04084