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-25
Credit Points: 5 CP for participating in the whole IRWS
Language of instruction: English
Contents: The course teaches how to fit simple and multilevel regression models with the statistical programming language R. First, simple linear regression models are introduced to show important basic principles of modelling, like simple regression or interaction terms. Later, the application of these principles in a multilevel framework is demonstrated. Furthermore, the course includes assessment of model fit (quality) and graphical representation and interpretation of complex (mixed) models, which helps communicate complicated models 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 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: Knowledge of classic 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
- Summaries: parameters, effectsize
- Interpretation: ggeffects
- Visualization: ggeffects, sjPlot, see
- Model Quality: performance
- Data preparation: datawizard
The easiest way to install the relevant core packages is running following code:
install.packages(c("easystats", "ggeffects"), dependencies = TRUE)
easystats::install_latest()
easystats::install_suggested()
ggeffects::install_latest()
To install further required packages, run:
install.packages(c("lme4", "glmmTMB", "effects", "emmeans", "modelsummary",
"sjmisc", "sjlabelled", "marginaleffects", "sjPlot", "dplyr", "tidyr"),
dependencies = TRUE)
You must register for the International Research Workshop to participate in this course.