Longitudinal Analysis in R

Learn how to analyze and model longitudinal data.
Start Course for Free
4 Hours13 Videos49 Exercises2,469 Learners
3950 XP

Create Your Free Account

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

What is longitudinal data and how can you analyze it? Here you will learn all about this kind of data and the descriptive analyses that can be used to explore it! You will also learn to model continuous and binary outcome variables. Linear mixed effects models will be used as a modern approach to modeling this kind of data, taking into account the correlated nature of it. For binary outcomes, generalized estimating equations will be introduced as an alternative to the generalized linear mixed models. Visualizations are used throughout the course to interpret model results and strategies for model selection are also explored. Along the way, you will use data from a number of longitudinal studies, including the Madras and Calcium datasets.

  1. 1

    Introduction to Longitudinal Data

    This chapter introduces the user to longitudinal data. Exploration of what is and what isn't longitudinal data, exploration of the dependent data structure, and other numeric summaries of the data will be covered in this chapter.
    Play Chapter Now
  2. 2

    Modeling Continuous Longitudinal Outcomes

    Chapter 2 will model continuous longitudinal outcomes with lme4. These observed score mixed models are common in the analysis of longitudinal data.
    Play Chapter Now
  3. 3

    Add fixed predictor variables

    This chapter will further explore adding additional predictors to the longitudinal model. These predictors, referred to as fixed effects, allow different trajectories based on variable characteristics.
    Play Chapter Now
  4. 4

    Modeling Longitudinal Dichotomous Outcomes

    This chapter will shift from continuous to binary outcomes. Binary outcomes are ones in which the outcome are in two categories. Special considerations for this outcome are needed to appropriately model the data and receive valid statistical results.
    Play Chapter Now
Richie CottonAmy Peterson
Working with Data in the Tidyverse
DataCamp Content Creator Headshot

DataCamp Content Creator

Course Instructor
DataCamp offers interactive R, Python, Spreadsheets, SQL and shell courses. All on topics in data science, statistics, and machine learning. Learn from a team of expert teachers in the comfort of your browser with video lessons and fun coding challenges and projects.
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA