Fast phylogenetic generalised linear mixed-effects modelling using the glmmTMB R package
Preprint
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.Keywords
Funding Information
- Australian Research Council (ARC) Discovery grant (DP230101248)
- Canada Excellence Research Chair (CERC-2022-00074)
This publication has 66 references indexed in Scilit:
- Simulation studies for methodological research in psychology: A standardized template for planning, preregistration, and reporting.Psychological Methods, 2024
- Evolvability and trait function predict phenotypic divergence of plant populationsProceedings of the National Academy of Sciences, 2022
- Statistical modeling of patterns in annual reproductive ratesEcology, 2019
- Using simulation studies to evaluate statistical methodsStatistics in Medicine, 2019
- Modern Phylogenetic Comparative Methods and Their Application in Evolutionary Biology2014
- Generalized linear mixed models: a practical guide for ecology and evolutionTrends in Ecology & Evolution, 2009
- How feather colour reflects its carotenoid contentFunctional Ecology, 2003
- Modern Applied Statistics with S2002
- Inferring the historical patterns of biological evolutionNature, 1999
- Costly sexual signals: are carotenoids rare, risky or required?Trends in Ecology & Evolution, 1998