glmmTMB Balances Speed and Flexibility Among Packages for Zero-inflated Generalized Linear Mixed Modeling
Mollie E. Brooks, Kasper Kristensen, Koen J. van Benthem, Arni Magnusson, Casper W. Berg, Anders Nielsen, Hans J. Skaug, Martin Mächler and Benjamin M. Bolker
, The R Journal (2017) 9:2, pages 378-400.
Abstract Count data can be analyzed using generalized linear mixed models when observations are correlated in ways that require random effects. However, count data are often zero-inflated, containing more zeros than would be expected from the typical error distributions. We present a new package, glmmTMB, and compare it to other R packages that fit zero-inflated mixed models. The glmmTMB package fits many types of GLMMs and extensions, including models with continuously distributed responses, but here we focus on count responses. glmmTMB is faster than glmmADMB, MCMCglmm, and brms, and more flexible than INLA and mgcv for zero-inflated modeling. One unique feature of glmmTMB (among packages that fit zero-inflated mixed models) is its ability to estimate the Conway-Maxwell-Poisson distribution parameterized by the mean. Overall, its most appealing features for new users may be the combination of speed, flexibility, and its interface’s similarity to lme4.
Received: 2017-05-29; online 2017-12-01, supplementary material, (5 KiB)@article{RJ-2017-066, author = {Mollie E. Brooks and Kasper Kristensen and Koen J. van Benthem and Arni Magnusson and Casper W. Berg and Anders Nielsen and Hans J. Skaug and Martin Mächler and Benjamin M. Bolker}, title = {{glmmTMB Balances Speed and Flexibility Among Packages for Zero-inflated Generalized Linear Mixed Modeling}}, year = {2017}, journal = {{The R Journal}}, doi = {10.32614/RJ-2017-066}, url = {https://doi.org/10.32614/RJ-2017-066}, pages = {378--400}, volume = {9}, number = {2} }