3
Loading Events
Home Recorded Courses Introduction to Generalised Linear Mixed Models for Ecologists (MMIEPR)
MMIEPR

Introduction to Generalised Linear Mixed Models for Ecologists

Master GLMMs and LMMs in R with this 40-hour on-demand course. Ideal for ecologists handling grouped or hierarchical data. Learn at your own pace.

  • Duration: 40 Hours
  • Next Date: Available 29 September
  • Format: Recorded ‘on-demand’ Format

£450Registration Fee

Register Now

Like what you see? Click and share!

5.0

from 200+ reviews

Course Description

This 40 hour course offers a practical and theoretical introduction to mixed effects models, also known as multilevel or hierarchical models. Using the R programming language, we explore both linear and generalised linear mixed models (LMMs and GLMMs), with an emphasis on ecological applications.

Participants will learn to handle nested and crossed data structures, incorporate group-level predictors, model overdispersion, and apply Bayesian approaches to multilevel modelling. The course balances conceptual understanding with real-world application, including diagnostics, model selection, and prediction. Ecological case studies are examined throughout to reinforce how mixed models can be used effectively in research. The course is ideal for ecologists and applied scientists working with grouped, hierarchical, or repeated-measures data.

What You’ll Learn

During the course will cover the following:

  • The structure and theory of linear and generalised linear mixed models (LMMs & GLMMs) .
  • How to specify, fit, and interpret mixed models using lme4, glmmTMB, and brms.
  • Techniques for handling nested, crossed, and repeated-measures ecological data.
  • Understanding shrinkage, intraclass correlation (ICC), and variance components.
  • Best practices for model selection, diagnostics, and visualisation.
  • Addressing overdispersion and zero-inflation in ecological count data.
  • How to fit and interpret Bayesian multilevel models using brms.
  • Applying mixed models to real ecological case studies.

Course Format

Flexible Learning Structure

Learn through a carefully structured mix of lecture recordings and guided exercises that you can pause, revisit, and complete at your own pace—ideal for busy professionals or those balancing multiple commitments.

Access Anytime, Anywhere

All course content is available on-demand, making it accessible across all time zones without the need to attend live sessions or adjust your schedule.

Independent Exploration with Support

Engage deeply with course topics through self-directed study, with the option to reach out to instructors via email for clarification or deeper discussion.

Comprehensive Learning Resources

Gain full access to the same high-quality materials provided in live sessions, including code, datasets, and presentation slides—all available to download and keep. Please note recordings can only be streamed.

Work With Your Own Data, On Your Terms

Apply what you learn directly to your own data projects as you go, allowing for a personalized and immediately practical learning experience.

Continued Guidance and Resource Access

Receive 30 days of post-enrolment email support and unrestricted access to all session recordings during that time, so you can review and reinforce your learning as needed.

Who Should Attend / Intended Audiences

The course is intended for ecologists, data analysts, postgraduate students, and early-career researchers with an interest in ecological data analysis. Participants should have basic experience using R and RStudio, such as importing data and running simple functions, as well as a general understanding of fundamental statistical concepts like mean, variance, correlation, and linear regression. While prior experience with linear models is not essential, it will be helpful, and the key concepts will be reviewed during the course. Additional experience with data wrangling tools like dplyr or tidyr, basic plotting using ggplot2, and interpreting model output is not required but would be beneficial.

Equipment and Software requirements

A laptop or desktop computer with a functioning installation of R and RStudio is required. Both R and RStudio are free, open-source programs compatible with Windows, macOS, and Linux systems.

While not essential, using a large monitor—or ideally a dual-monitor setup—can significantly enhance your learning experience by allowing you to view course materials and work in R simultaneously.

All necessary R packages will be introduced and installed during the workshop.

Download R Download RStudio Download Zoom

Dr. Niamh Mimnagh

Dr. Niamh Mimnagh

Niamh is a statistician working at the interface of ecology, epidemiology, and data science. Her research focuses on applying and developing statistical and machine learning methods to address real-world challenges such as estimating species population sizes from count and trace data and predicting livestock disease re-emergence using sparse or imbalanced datasets. She works with a wide array of statistical approaches, including Bayesian hierarchical models, N-mixture models, anomaly detection algorithms, and spatial analysis techniques.

 

Niamh earned her PhD in Statistics, with a focus on multispecies abundance modelling, and holds a first-class MSc in Data Science. Alongside her research, she is actively engaged in science communication and education, running a popular blog on applied statistics for non-specialists, and regularly delivering workshops and guest lectures on topics such as GLMs and machine learning with imbalanced data.

 

Education & Career

  • PhD in Statistics (Multispecies Abundance Modelling)
  • MSc in Data Science (First Class Honours)
  • Instructor, consultant, and science communicator in statistical ecology and epidemiology

 

Research Focus

Niamh’s work centres on extracting meaningful insights from complex ecological and epidemiological data. She is particularly interested in population estimation techniques and predictive modelling for conservation and disease management, using advanced statistical tools and reproducible workflows.

 

Current Projects

  • Development of Bayesian and ML approaches for estimating species abundance from imperfect data
  • Modelling livestock disease risk using spatial and temporal predictors
  • Creating accessible educational materials for teaching applied statistics in R

 

Professional Consultancy

Niamh provides expert statistical support to academic and applied research projects, with a focus on ecological monitoring, conservation planning, and disease modelling. She also advises on study design and data workflows for interdisciplinary teams.

 

Teaching & Skills

  • Teaches topics including GLMs, Bayesian statistics, machine learning for imbalanced data, and spatial statistics in R
  • Advocates for reproducibility, open science, and accessible statistical training
  • Experienced in communicating complex methods to broad audiences

 

Links

 

Session 1 – 01:00:00 – What Are Multilevel Models?
We begin by introducing multilevel models as ‘models of models,’ where random effects are used to capture variation among groups. Using data on breeding success in Scottish seabird colonies, we highlight how grouping structures arise naturally in ecological research.

Session 2 – 01:00:00 – Random Intercepts in Binomial Models
This session introduces random intercepts in binomial models, where the response is binary and clustered by group. Frog presence or absence across Irish wetland sites serves as a motivating example for how random effects improve inference over fixed-effect-only models.

Session 3 – 01:00:00 – Partitioning Variance in Grouped Data
We explore how multilevel models partition variance into within-group and between-group components. Visualising this structure helps us understand how differences across ecological groups like nesting sites or habitats are captured statistically.

Session 4 – 01:00:00 – Normality and Shrinkage in Random Effects
Random effects are often assumed to follow a normal distribution. In this session, we explore what this means in ecological contexts where group-level effects vary. We use pollinator data from pan traps across the UK to show how estimates for individual sites are informed not just by local observations but also by the overall dataset. This leads us to the concept of statistical shrinkage, or partial pooling, where site-level estimates are “shrunk” toward the global average—especially for sites with limited data—highlighting how multilevel models balance group-specific and population-wide information.

Session 5 – 01:00:00 – Intraclass Correlation (ICC)
Intraclass correlation (ICC) quantifies the proportion of total variance attributable to grouping structure. We compute and interpret ICC in ecological settings, showing how it reflects similarity within clusters, such as repeated measures from the same location.

Session 6 – 01:00:00 – Fitting Basic Models in R
To consolidate the day’s material, we fit binomial and normal random effects models using R. We will walk through examples, examine model output, and interpret the effects of grouping on estimated parameters.

Session 7 – 01:00:00 – Introducing Liner Mixed Effects Models (LMEMs) for Continuous Outcomes
We transition from binary responses to continuous data using linear mixed effects models. Tree height measurements collected from multiple forest plots provide a motivating example for incorporating random intercepts, allowing us to account for differences in average tree height across plots while examining how individual-level factors like soil nutrients influence growth.

Session 8 – 01:00:00 – Random Intercepts in LMEMs
This session focuses on fitting and interpreting random intercept models, allowing each group to have a different baseline level. We examine site-level variability in simulated plant trait data and discuss implications for ecological inference.

Session 9 – 01:00:00 – Allowing Slopes to Vary Across Groups
We extend the model by allowing regression slopes to vary by group. Using an extended version of the Palmer Penguins dataset, we explore how the relationship between flipper length and body mass differs across penguin species. By fitting a model with random slopes, we show how multilevel models can capture this ecological heterogeneity and reveal species-specific growth patterns.

Session 10 – 01:00:00 – Correlated Random Intercepts and Slopes
Here we fit models with both random intercepts and slopes and examine the correlation between them. This provides insight into how group-specific responses differ not just in level but also in relationship to predictors.

Session 11 – 01:00:00 – Evaluating Model Fit and Complexity
We introduce model selection tools including AIC and likelihood ratio tests, and discuss when to use restricted maximum likelihood (REML). Residual diagnostics and random effect plots help us assess model adequacy.

Session 12 – 01:00:00 – Visualising and Interpreting LMEMs
We visualise fitted models using group-specific lines and predicted values. We interpret shrinkage and assess how multilevel models improve understanding of ecological patterns across groups.

Session 13 – 01:00:00 – Hierarchical Data and Nested Models
Ecological data often exhibit nested structure, such as trees within plots within forests. We explore how to represent these structures in multilevel models and what nesting means for interpretation and variance.

Session 14 – 01:00:00 – Implementing Nested Random Effects in R
We demonstrate how to code nested models in R and interpret the resulting variance components. A biodiversity dataset with multiple nested spatial levels helps illustrate the hierarchy in practice.

Session 15 – 01:00:00 – Variance Partitioning in Nested Structures
We explore how to extract and interpret variance at each nested level, and how this informs our understanding of group-level effects. We also revisit ICC in the context of more complex groupings.

Session 16 – 01:00:00 – Crossed Random Effects: Concepts and Examples
Not all grouping structures are hierarchical. We introduce crossed random effects using examples such as species abundance recorded by multiple observers at different sites, where groupings overlap rather than nest.

Session 17 – 01:00:00 – Fitting Crossed Random Effects Models
Participants learn how to implement crossed random intercept models in R and distinguish them from nested models. We interpret variance and model outputs in the context of observer bias and site-level variability.

Session 18 – 01:00:00 – Comparing Nested and Crossed Models
We compare nested and crossed structures. We discuss how the choice of model affects inference, and which structure best reflects the data-generating process.

Session 19 – 01:00:00 – Adding Group-Level Predictors
Multilevel models can include predictors at both individual and group levels. We use simulated fish size data across multiple lakes to demonstrate how both fish age (individual) and lake depth (group) influence outcomes.

Session 20 – 01:00:00 – Centring Predictors for Clearer Interpretation
We explain why centring predictors—either around the grand mean or group mean—is important for interpretability and model performance. Ecological examples show how centring affects coefficient interpretation and variance partitioning.

Session 21 – 01:00:00 – Cross-Level Interactions
This session explores how predictors at different levels can interact to influence ecological outcomes. Using simulated data on invertebrate richness across multiple sites, we examine how the effect of local flowering plant richness on invertebrate species richness varies with site-level land use intensity. This example highlights how ecological relationships may strengthen or weaken depending on broader environmental context and illustrates the value of modelling cross-level interactions in multilevel analysis.

Session 22 – 01:00:00 – Introducing Generalised Linear Mixed Models
We now extend mixed models to non-normal outcomes using GLMMs. Count and binary data are common in ecology; we demonstrate how GLMMs can be used for pollinator counts and presence-absence data.

Session 23 – 01:00:00 – Dealing with Overdispersion in Count Models
Overdispersion is a common issue in ecological count data. We discuss diagnostics, model remedies, and how to incorporate individual-level random effects to capture unobserved heterogeneity in animal counts.

Session 24 – 01:00:00 – Fitting and Evaluating GLMMs in R
We walk through fitting Poisson and binomial GLMMs in R using ecological datasets. Emphasis is placed on understanding model output, visualising predictions, and identifying overdispersion or convergence issues.

Session 25 – 01:00:00 – Why Bayesian? An Introduction for Ecologists
We introduce Bayesian multilevel models and discuss how they differ from frequentist approaches. Key concepts—such as priors, posteriors, and uncertainty—are presented with ecological examples that benefit from incorporating prior knowledge.

Session 26 – 01:00:00 – Specifying Models with brms
This session focuses on using the brms package in R to fit Bayesian models. We fit a hierarchical model for tree growth, showing how familiar syntax translates into a Bayesian framework.

Session 27 – 01:00:00 – Interpreting Posterior Output
We learn how to interpret Bayesian model output, including posterior means, credible intervals, and diagnostic metrics. Ecological examples are used to demonstrate the difference between posterior and frequentist summaries.

Session 28 – 01:00:00 – Model Checking and Posterior Predictive Checks
Good model checking is essential in Bayesian analysis. We explore convergence diagnostics (R-hat, ESS) and use graphical posterior predictive checks to assess model fit using the bayesplot package.

Session 29 – 01:00:00 – Case Study: Bayesian vs. Frequentist Models
We apply both Bayesian and frequentist models to the same ecological dataset—species counts across locations—and compare their estimates, uncertainty, and interpretability. This highlights the advantages of the Bayesian approach for certain ecological questions.

Session 30 – 01:00:00 – Final Review
We conclude the course with a summary of key concepts, discussing when and why to use multilevel models, how to select appropriate structures, and what tools are available in R. We close with Q&A and suggestions for packages, vignettes, and readings.

Testimonials

PRStats offers a great lineup of courses on statistical and analytical methods that are super relevant for ecologists and biologists. My lab and I have taken several of their courses—like Bayesian mixing models, time series analysis, and machine/deep learning—and we've found them very informative and directly useful for our work. I often recommend PRStats to my students and colleagues as a great way to brush up on or learn new R-based statistical skills.

Rolando O. Santos

PhD Assistant Professor, Florida International University

Courses attended

SIMM05, IMDL03, ITSA02, GEEE01 and MOVE07

Testimonials

PRStats offers a great lineup of courses on statistical and analytical methods that are super relevant for ecologists and biologists. My lab and I have taken several of their courses—like Bayesian mixing models, time series analysis, and machine/deep learning—and we've found them very informative and directly useful for our work. I often recommend PRStats to my students and colleagues as a great way to brush up on or learn new R-based statistical skills.

Rolando O. Santos

PhD Assistant Professor, Florida International University

Courses attended

SIMM05, IMDL03, ITSA02, GEEE01 and MOVE07

Testimonials

PRStats offers a great lineup of courses on statistical and analytical methods that are super relevant for ecologists and biologists. My lab and I have taken several of their courses—like Bayesian mixing models, time series analysis, and machine/deep learning—and we've found them very informative and directly useful for our work. I often recommend PRStats to my students and colleagues as a great way to brush up on or learn new R-based statistical skills.

Rolando O. Santos

PhD Assistant Professor, Florida International University

Courses attended

SIMM05, IMDL03, ITSA02, GEEE01 and MOVE07

Frequently asked questions

Everything you need to know about the product and billing.

When will I receive instructions on how to join?

You’ll receive an email on the Friday before the course begins, with full instructions on how to join via Zoom. Please ensure you have Zoom installed in advance.

Do I need administrator rights on my computer?

Yes — administrator access is recommended, as you may need to install software during the course. If you don’t have admin rights, please contact us before the course begins and we’ll provide a list of software to install manually.

I’m attending the course live — will I also get access to the session recordings?

Yes. All participants will receive access to the recordings for 30 days after the course ends.

I can’t attend every live session — can I join some sessions live and catch up on others later?

Absolutely. You’re welcome to join the live sessions you can and use the recordings for those you miss. We do encourage attending live if possible, as it gives you the chance to ask questions and interact with the instructor. You’re also welcome to send questions by email after the sessions.

I’m in a different time zone and plan to follow the course via recordings. When will these be available?

We aim to upload recordings on the same day, but occasionally they may be available the following day.

I can’t attend live — how can I ask questions?

You can email the instructor with any questions. For more complex topics, we’re happy to arrange a short Zoom call at a time that works for both of you.

Will I receive a certificate?

Yes. All participants receive a digital certificate of attendance, which includes the course title, number of hours, course dates, and the instructor’s name.

When will I receive instructions on how to join?

You’ll receive an email on the Friday before the course begins, with full instructions on how to join via Zoom. Please ensure you have Zoom installed in advance.

Do I need administrator rights on my computer?

Yes — administrator access is recommended, as you may need to install software during the course. If you don’t have admin rights, please contact us before the course begins and we’ll provide a list of software to install manually.

I’m attending the course live — will I also get access to the session recordings?

Yes. All participants will receive access to the recordings for 30 days after the course ends.

I can’t attend every live session — can I join some sessions live and catch up on others later?

Absolutely. You’re welcome to join the live sessions you can and use the recordings for those you miss. We do encourage attending live if possible, as it gives you the chance to ask questions and interact with the instructor. You’re also welcome to send questions by email after the sessions.

I’m in a different time zone and plan to follow the course via recordings. When will these be available?

We aim to upload recordings on the same day, but occasionally they may be available the following day.

I can’t attend live — how can I ask questions?

You can email the instructor with any questions. For more complex topics, we’re happy to arrange a short Zoom call at a time that works for both of you.

Will I receive a certificate?

Yes. All participants receive a digital certificate of attendance, which includes the course title, number of hours, course dates, and the instructor’s name.

Still have questions?

Can’t find the answer you’re looking for? Please chat to our friendly team.

×

Tickets

The numbers below include tickets for this event already in your cart. Clicking "Get Tickets" will allow you to edit any existing attendee information as well as change ticket quantities.
MMIEPR RECORDED
MMIEPR RECORDED
£ 450.00
Unlimited
£450.00
22nd September 2035 - 24th September 2035
Recorded, United Kingdom
A close up of an Elephant