Back

Fast phylogenetic generalised linear mixed-effects modelling using the glmmTMB R package

Williams, C.; McGillycuddy, M.; Drobniak, S. M.; Bolker, B. M.; Warton, D. I.; Nakagawa, S.

2026-02-04 evolutionary biology
10.64898/2025.12.20.695312 bioRxiv
Show abstract

Phylogenetic generalised linear mixed models (PGLMMs) help ecologists to distinguish ecological drivers from other processes shaping evolutionary patterns, yet existing implementations are often limited in distributional scope or computational speed. We compare five R packages for fitting PGLMMs and highlight the new covariance structure propto in the general-purpose GLMM package glmmTMB. Simulations show that glmmTMB fits PGLMMs faster overall than brms, MCMCglmm, INLA, and phyr, while producing similar model estimates. We present the first practical application of glmmTMB for fitting phylogenetic random effects using likelihood-based models that accommodate repeated measures, demonstrated through case studies of evolutionary trait data. By improving both speed and flexibility, glmmTMB broadens access to PGLMM and supports deeper insights into trait evolution and diversification.

Matching journals

The top 4 journals account for 50% of the predicted probability mass.

1
Methods in Ecology and Evolution
160 papers in training set
Top 0.2%
21.7%
2
Molecular Biology and Evolution
488 papers in training set
Top 0.3%
12.0%
3
Systematic Biology
121 papers in training set
Top 0.1%
11.9%
4
PLOS Biology
408 papers in training set
Top 0.7%
6.9%
50% of probability mass above
5
Nature Communications
4913 papers in training set
Top 27%
6.6%
6
Ecology Letters
121 papers in training set
Top 0.2%
6.1%
7
Proceedings of the Royal Society B: Biological Sciences
341 papers in training set
Top 2%
3.1%
8
New Phytologist
309 papers in training set
Top 2%
2.5%
9
Molecular Ecology Resources
161 papers in training set
Top 0.4%
2.3%
10
Philosophical Transactions of the Royal Society B
51 papers in training set
Top 3%
1.8%
11
Peer Community Journal
254 papers in training set
Top 2%
1.6%
12
PLOS Computational Biology
1633 papers in training set
Top 17%
1.6%
13
Nature Ecology & Evolution
113 papers in training set
Top 3%
1.6%
14
Evolution
199 papers in training set
Top 1%
1.4%
15
eLife
5422 papers in training set
Top 46%
1.4%
16
Proceedings of the National Academy of Sciences
2130 papers in training set
Top 37%
1.3%
17
PLOS Genetics
756 papers in training set
Top 11%
1.3%
18
Ecography
50 papers in training set
Top 0.9%
1.2%
19
Virus Evolution
140 papers in training set
Top 1%
1.2%
20
The American Naturalist
114 papers in training set
Top 2%
0.9%
21
Molecular Ecology
304 papers in training set
Top 4%
0.9%
22
PLOS ONE
4510 papers in training set
Top 67%
0.8%
23
Global Ecology and Biogeography
41 papers in training set
Top 0.6%
0.8%
24
Bioinformatics
1061 papers in training set
Top 10%
0.7%
25
Communications Biology
886 papers in training set
Top 26%
0.7%
26
Ecology and Evolution
232 papers in training set
Top 4%
0.7%
27
Journal of Evolutionary Biology
98 papers in training set
Top 1%
0.7%