1 Overview

These are (incomplete) course notes about generalised linear mixed models (GLMM). Special emphasis is placed on understanding the underlying structure of a GLMM in order to show that slight modifications of this structure can produce a wide range of models. These include familiar models like regression and ANOVA, but also models with intimidating names: animal models, threshold models, meta-analysis, random regression The primary aim of the course is to show that these models are only daunting by name. The secondary aim is to show how these models can be fitted in a Bayesian framework using Markov chain Monte Carlo (MCMC) methods in the R package \(\texttt{MCMCglmm}\) (Hadfield 2010). For those not comfortable using Bayesian methods, many of the models outlined in the course notes can be fitted using the packages \(\texttt{asreml-r}\) (Butler et al. 2017), \(\texttt{lme4}\) (Bates et al. 2015) or \(\texttt{glmmTMB}\) (Brooks et al. 2017) with little extra work.

1.1 Outline

Chapter 2 covers the very basics of Bayesian analysis and Markov chain Monte Carlo (MCMC) techniques. Chapter 3 covers simple generalised linear mixed models (GLMM). The response is assumed to be (conditionally) normal or from a single-parameter family such as the Poisson, and the distribution of the random effects can be parameterised through scalar variances. Chapters 5 and 6 cover situations where the distribution of the random effects are parameterised through a (co)variance matrix either because the random terms are interacted with categorical predictors (Chapter 5) or continuos predictors (random-regression - Chapter 6). Chapter 7 covers multi-response models in which multiple response variables, possibly from different distributions, are simultaneously analysed. This chapter also covers distributions that are multi-parameter such as multinomial and zero-inflated distributions. Chapter 8 discusses models where a set of random-effects are correlated through a known structure such as a pedigree or phylogeny. Much of the technical details regarding the implementation are in Chapter 11. Chapter 11.3 covers parameter-expansion, an algorithm designed to improve the mixing properties of MCMC but which also induces new, and useful, prior distributions. Chapter 10 covers path analysis and related antedependence models. Much of the material is currently taken from the old CourseNotes (c2009) but the hope is that over time these new notes will be better structured and include better/some documentation for more recent functionality.

References

Bates, Douglas, Martin Mächler, Ben Bolker, and Steve Walker. 2015. “Fitting Linear Mixed-Effects Models Using Lme4.” Journal of Statistical Software 67: 1–48.
Brooks, Mollie E, Kasper Kristensen, Koen J Van Benthem, Arni Magnusson, Casper W Berg, Anders Nielsen, Hans J Skaug, Martin Mächler, and Benjamin M Bolker. 2017. glmmTMB Balances Speed and Flexibility Among Packages for Zero-Inflated Generalized Linear Mixed Modeling.”
Butler, DG, BR Cullis, AR Gilmour, BJ Gogel, and Ret al Thompson. 2017. ASReml-R Reference Manual Version 4.” VSN International Ltd, Hemel Hempstead, HP1 1ES, UK.
Hadfield, J. D. 2010. MCMC Methods for Multi–Response Generalised Linear Mixed Models: The MCMCglmm R Package.” Journal of Statistical Software 33 (2): 1–22.