HomeRHierarchical and Mixed Effects Models in R

Hierarchical and Mixed Effects Models in R

4.5+
17 reviews

In this course you will learn to fit hierarchical models with random effects.

4 Hours13 Videos55 Exercises

or

Training 2 or more people?Try DataCamp For Business

Course Description

This course begins by reviewing slopes and intercepts in linear regressions before moving on to random-effects. You'll learn what a random effect is and how to use one to model your data. Next, the course covers linear mixed-effect regressions. These powerful models will allow you to explore data with a more complicated structure than a standard linear regression. The course then teaches generalized linear mixed-effect regressions. Generalized linear mixed-effects models allow you to model more kinds of data, including binary responses and count data. Lastly, the course goes over repeated-measures analysis as a special case of mixed-effect modeling. This kind of data appears when subjects are followed over time and measurements are collected at intervals. Throughout the course you'll work with real data to answer interesting questions using mixed-effects models.

.css-1goj2uy{margin-right:8px;}Group.css-gnv7tt{font-size:20px;font-weight:700;white-space:nowrap;}.css-12nwtlk{box-sizing:border-box;margin:0;min-width:0;color:#05192D;font-size:16px;line-height:1.5;font-size:20px;font-weight:700;white-space:nowrap;}Training 2 or more people?

Try DataCamp for BusinessFor a bespoke solution book a demo.

Go To Track
1. 1

Overview and Introduction to Hierarchical and Mixed Models

Free

The first chapter provides an example of when to use a mixed-effect and also describes the parts of a regression. The chapter also examines a student test-score dataset with a nested structure to demonstrate mixed-effects.

Play Chapter Now
What is a hierarchical model?
50 xp
Examples of hierarchical datasets
100 xp
Multi-level student data
100 xp
Exploring multiple-levels: Classrooms and schools
100 xp
Parts of a regression
50 xp
Intercepts
100 xp
Slopes and multiple regression
100 xp
Random-effects in regressions with school data
50 xp
Random-effect intercepts
100 xp
Random-effect slopes
100 xp
Building the school model
100 xp
Interpreting the school model
100 xp
2. 2

Linear Mixed Effect Models

This chapter providers an introduction to linear mixed-effects models. It covers different types of random-effects, describes how to understand the results for linear mixed-effects models, and goes over different methods for statistical inference with mixed-effects models using crime data from Maryland.

3. 3

Generalized Linear Mixed Effect Models

This chapter extends linear mixed-effects models to include non-normal error terms using generalized linear mixed-effects models. By altering the model to include a non-normal error term, you are able to model more kinds of data with non-linear responses. After reviewing generalized linear models, the chapter examines binomial data and count data in the context of mixed-effects models.

4. 4

Repeated Measures

This chapter shows how repeated-measures analysis is a special case of mixed-effect modeling. The chapter begins by reviewing paired t-tests and repeated measures ANOVA. Next, the chapter uses a linear mixed-effect model to examine sleep study data. Lastly, the chapter uses a generalized linear mixed-effect model to examine hate crime data from New York state through time.

In the following Tracks

Statistician with R

Go To Track

Datasets

Illinois chlamydia dataMaryland crime dataClassroom dataBirth rate dataNew York hate crime data

Collaborators

Richard Erickson

Data Scientist

Richard helps people to experience and understand their increasingly numerical world. For his day job he develops new quantitative methods for monitoring and controlling invasive species as well as helping other scientists analyze and understand their data. He has worked on diverse datasets ranging from continent-wide species distributions to pesticides in playa wetlands. After hours, he teaches SCUBA Diving as a NAUI Instructor. He has been a member of "UserR" since 2007.
See More

Don’t just take our word for it

*4.5
from 17 reviews
65%
29%
6%
0%
0%
Sort by
• Edwin A.
3 months

Through this course, I have learned to model more kinds and complicated structure of data.

• Dimitris L.
6 months

useful course

• Nicolas F.
7 months

This is a foundational course for any researcher who wants to learn mixed effects models in R.

• Mutahi W.
12 months

The exercises are great and will make sure you practise by repetition!

s

"Through this course, I have learned to model more kinds and complicated structure of data."

Edwin A.

"useful course"

Dimitris L.

"This is a foundational course for any researcher who wants to learn mixed effects models in R."

Nicolas F.