bioRxivEvolutionary BiologyPreprint
Fast phylogenetic generalised linear mixed-effects modelling using the glmmTMB R package
Coralie WilliamsiD, Maeve McGillycuddyiD, Szymon Marian DrobniakiD, Benjamin M. BolkeriD, David I. WartoniD, Shinichi NakagawaiD
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.
- Citations
- 1
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Multi-Response Phylogenetic Mixed Models: Concepts andApplication
B. Halliwell, B. R. Holland, L. A. Yates·bioRxiv·Dec 13, 2022
- A variable-rate quantitative trait evolution model using penalized-likelihood
L. J. Revell·bioRxiv·Apr 17, 2021
- TreePPL: A Universal Probabilistic Programming Language for Phylogenetics
Viktor Senderov, Jan Kudlicka, … Fredrik Ronquist·bioRxiv·Oct 10, 2023
- Modeling Zero-Inflated Count Data With glmmTMB
Mollie E. Brooks, Kasper Kristensen, … Benjamin M. Bolker·bioRxiv·May 1, 2017
- Parallel Likelihood Calculation for Phylogenetic Comparative Models: the SPLITT C++ Library
V. Mitov, T. Stadler·bioRxiv·Oct 29, 2018
- phyr: An R package for phylogenetic species-distribution modelling in ecological communities
D. Li, R. Dinnage, … A. R. Ives·bioRxiv·Feb 17, 2020