Longitudinal data analysis is essential for understanding change, dynamics, and causal processes in the social sciences. By following individuals, households, organisations, or countries over time, longitudinal data allows researchers to move beyond static descriptions and answer questions about development, change, and causality.
Researchers often struggle with longitudinal data because the practical workflow is hard and seldom discussed. Issues such as preparing data, exploring change over time, choosing appropriate models, handling missing data, and translating statistical output into substantive conclusions are often not part of courses or books on longitudinal data analysis. Many existing resources focus on isolated methods, assume strong statistical backgrounds, or skip over the messy steps that dominate real research.
Longitudinal Data Analysis Using R helps solve these problems.
This book provides a complete, hands-on guide to longitudinal data analysis, covering the full research workflow from raw data to published results. Using real-world datasets and fully reproducible R code, it shows not only which models to use, but how and why they are applied in practice.
What this book helps you do
- Understand longitudinal data and the key concepts underlying change over time
- Prepare longitudinal data efficiently, including importing, reshaping, recoding, and structuring data correctly
- Explore longitudinal data using tables, summary statistics, and visualisations
- Apply core models for longitudinal analysis, including fixed and random effects models, cross-lagged models, multilevel models for change, and latent growth models
- Handle common pitfalls in longitudinal research, such as missing data, measurement error, and age–period–cohort confounding
- Develop a reproducible workflow for longitudinal data analysis and communicate results clearly and transparently
How Longitudinal Data Analysis Using R is structured
The book starts by building a solid foundation, introducing the essentials of R, regression modelling, path analysis, and the core ideas behind longitudinal data. It then moves step by step through the practical stages of longitudinal analysis: preparing data, describing patterns of change, and estimating some of the most popular models for longitudinal analysis. Advanced chapters focus on substantive challenges that, if ignored, can undermine research, including missing data, measurement error, and the presentation of results.
Throughout, the emphasis is on applied longitudinal data analysis: real-world data, clear explanations, use of visualisation to understand complex concepts and code that can be adapted directly to your own research.
Who is this book for?
This book is designed for:
- PhD students and early-career researchers working with longitudinal data
- Applied researchers using surveys, panels, cohort studies, or administrative data
- Analysts transitioning to R for longitudinal analysis
- Researchers who want a single, coherent reference for longitudinal data analysis rather than a collection of disconnected methods
You do not need to be a statistical specialist or an expert in R to benefit from the book. The book covers foundational concepts, offers a thorough introduction to R and ensures you have the statistical knowledge needed to understand complex longitudinal models.
All the R code used in the book is available on the companion website together with the equivalent code in Mplus and Stata.
Paperback version is available here.
Table of contents for Longitudinal Data Analysis Using R
- Introduction to Longitudinal Data
- Introduction to R
- Preparing Longitudinal Data
- Describing Longitudinal Data
- Introduction to Regression Models
- Introduction to Path Analysis
- Fixed and Random Effects
- The Cross-Lagged Models
- The Multilevel Model for Change
- The Latent Growth Model
- Measurement Error and Longitudinal Data
- Dealing with Missing Data
- Workflows and Presenting Results