Multi-level Modelling with R

Institution: see Organisers & Supporters

Programme of study: International Research Workshop

Lecturer: Dr. Daniel Lüdecke (UKE Hamburg)

Date: see Workshop Programme

Max. number of participants: 20

Credit Points: 5 CP for participating in the whole IRWS

Language of instruction: English

Contents: The course teaches how to fit multilevel regression models with the statistical programming language R. First, simple (generalized) linear regression models are introduced to show important basic principles of modelling, like simple regression, interaction terms, non-linear relationships between predictors and outcome (polynomial and spline terms). Later, the application of these principles in a multilevel framework is demonstrated. Furthermore, graphical representation of complex mixed models is covered that help communicate complicated models in a simple way even for a broad audience that is less familiar with such modelling techniques. Successful participation requires basic knowledge of regression modelling techniques. Students are encouraged to bring their own laptops with the free software R (www.r-project.org/) and RStudio (www.rstudio.com/) installed. All source code to run the examples is provided in preparation for the course.

Requirements: Basic knowledge of regression modelling (familiarity with terms like dependent and independent variables, linear and logistic regression, estimate, …)

Recommended readings:

  • Harrison, X. A., Donaldson, L., Correa-Cano, M. E., Evans, J., Fisher, D. N., Goodwin, C. E. D., … Inger, R. (2018). A brief introduction to mixed-effects modelling and multi-model inference in ecology. PeerJ, 6, e4794. https://doi.org/10.7717/peerj.4794
  • Bolker, B. M., Brooks, M. E., Clark, C. J., Geange, S. W., Poulsen, J. R., Stevens, M. H. H., & White, J.-S. S. (2009). Generalized linear mixed models: a practical guide for ecology and evolution. Trends in Ecology & Evolution, 24(3), 127–135. https://doi.org/10.1016/j.tree.2008.10.008

Required R packages:

  • Modelling: lme4, glmmTMB, GLMMadaptive
  • Visualization: ggeffects, sjPlot, see
  • Summaries and Statistics: parameters, effectsize
  • Model Quality: performance
  • Data preparation: sjmisc, dplyr, tidyr

Run install.packages(c(“lme4”, “glmmTMB”, “parameters”, “performance”, “effectsize”, “see”, “GLMMadaptive”, “ggeffects”, “sjPlot”, “sjmisc”, “dplyr”, “tidyr”), dependencies = TRUE) to install the relevant packages.

You have to register for the International Research Workshop to participate in this course.