Applied Linear Mixed Models in R

Author

Joris De Wolf

Published

October 25, 2024

Preface

This text explains the basics of linear mixed models and demonstrate with practical examples how to fit linear mixed models in R.

We start simple but cover also more complex cases of multiple random effects, longitudinal data, or observations that have a defined relationship.

The main R packages used for the modelling are lme4 and brms.

The examples use the tidyR syntax and tools.