Introduction: Linear mixed-effects models (LMMs), also known as hierarchical models, are another extension of simple linear models used when there is clustering (i.e., nested data structures) or non-independence (i.e., repeated measurements) among observations. These models are called “mixed-effects” because they incorporate both fixed and random effects. Fixed effects are variables with a constant effect on the response variable, while random effects are variables whose values or levels are assumed to be drawn randomly from a larger population of levels. Given the natural clustering in biological data (e.g., genetic groups, geographic locations), as well as the longitudinal monitoring of the same individuals over time, LMMs represent another essential tool in modern population biology.
In this module, you will expand your skills on linear models (Modules M.4) to LMMs while testing associations between Cayo Santiago rhesus macaque social cognition and age.
Upon completion of this module, you will be able to:
References:
Extra training:
Associated literature:
Notation:
Functions:
Base R:
ggeffects:
lmerTest: