Skip to main content
HomeR

Hierarchical and Mixed Effects Models in R

4.6+
19 reviews
Advanced

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

Start Course for Free
4 hours13 videos55 exercises20,211 learnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
Group

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies


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.
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.
DataCamp for BusinessFor a bespoke solution book a demo.

In the following Tracks

Statistician in R

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. 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.

    Play Chapter Now
  3. 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.

    Play Chapter Now
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.

In the following Tracks

Statistician in R

Go To Track

datasets

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

collaborators

Collaborator's avatar
Chester Ismay
Collaborator's avatar
Nick Solomon
Richard Erickson HeadshotRichard 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.6
from 19 reviews
68%
26%
5%
0%
0%
Sort by
  • Lorenza M.
    about 1 month

    Very concise and clear, useful for learning both how to use DataCamp and statistics

  • Sivakumar S.
    2 months

    It was a good introduction to mixed models, some more complex mixed models will be good to add and also why some factors are random and some are fixed, those will be good.

  • Edwin A.
    7 months

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

  • Dimitris L.
    10 months

    useful course

  • Nicolas F.
    12 months

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

"Very concise and clear, useful for learning both how to use DataCamp and statistics"

Lorenza M.

"It was a good introduction to mixed models, some more complex mixed models will be good to add and also why some factors are random and some are fixed, those will be good."

Sivakumar S.

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

Edwin A.

Join over 15 million learners and start Hierarchical and Mixed Effects Models in R today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.