Leanpub Header

Skip to main content

Applied Quantitative Analysis in R for Social Researchers

Build a complete R workflow for social research, from data preparation and visualisation to advanced mediation, moderation, and causal analysis. This track takes you beyond basic regression to understanding why and when relationships occur, using real data and modern R tools. Learn skills you can apply directly to your own research, from first scripts to rigorous causal models.

Minimum price

$299.00

$299.00

You pay

$299.00
$

...Or Buy With Credits!

You can get credits with a paid monthly or annual Reader Membership, or you can buy them here.
These courses have a total suggested price of $350.00. Get them now for only $299.00!
About

About

About the Track

This track provides a complete and structured pathway for social researchers who want to use R confidently and apply it to substantive, theory-driven research questions. It brings together two complementary courses—Introduction to R for Social Researchers and Mediation and Moderation Analysis using R—to take you from core data skills to advanced causal analysis in a single, coherent learning experience.

The track begins by building a solid foundation in R as a research tool. You will learn how to work effectively in R and RStudio, prepare and clean real social science data, create clear and publication-ready visualisations, and carry out core statistical analyses commonly used in applied research. The emphasis throughout is on practical workflows and realistic datasets, ensuring that the skills you develop translate directly to your own research projects.

Building on this foundation, the track then moves to advanced methods for understanding why and when relationships between variables occur. You will learn how to estimate and interpret mediation and moderation models, analyse interaction effects, and move beyond simple regression to path analysis, structural equation modelling, and causal mediation frameworks. These methods allow you to test mechanisms, explore contextual effects, and draw richer substantive conclusions from observational and experimental data.

Across both courses, learning is hands-on and applied. Short lectures are combined with live demonstrations, worked examples, and practical exercises using real-world data. You will work with widely used R packages such as tidyverse, ggplot2, lavaan, mediation, and interactions, and you will learn how to visualise, interpret, and communicate complex results clearly and rigorously.

By completing this track, you will be able to:

  • Work confidently in R for applied social research
  • Build clean, reproducible data workflows
  • Create clear and effective visualisations
  • Apply core statistical methods used in social science
  • Estimate and interpret mediation and moderation models
  • Analyse mechanisms and contextual effects using modern causal tools

This track is designed for PhD students, early-career researchers, and applied analysts in the social, behavioural, and health sciences who already have some familiarity with quantitative research and want to deepen both their technical skills and their ability to draw meaningful conclusions from data.

Share this track

Certificate

Verified Certificate

When you successfully complete the Track, you will receive a verified Certificate of Completion from Leanpub, certifying that you have completed the entire Track.

Courses

Courses Included

Introduction to R for Social Researchers

A Practical Course on Data Preparation, Visualisation, and Statistical Analysis

Introduction to R for Social Researchers is a practical course that will help you use R for real research. Rather than focusing on programming for its own sake, the course emphasises building robust, reproducible workflows for social science research, with a particular focus on data wrangling and data visualisation in R.

Learning outcomes

  • Understanding the logic of R, including the main types of objects used in data analysis.
  • Import and export data from common file formats used in social research.
  • Apply data wrangling in R, including selecting variables, merging datasets, and recoding variables.
  • Develop proficiency in data visualisation in R, using ggplot, facets, and appropriate statistical transformations.
  • Create weighted summaries and visualisations for data arising from complex survey designs.
  • Carry out core statistical analyses in R, including descriptive statistics, t-tests, chi-square tests, correlations, and regression models.

By the end of the course, you will be able to work comfortably in R and apply these skills directly to your own research projects.

Learning methods

The course combines over six hours of video content with hands-on practical exercises, using clear explanations and video demonstrations in R and RStudio. Learning is grounded in realistic, real-world survey data, including the European Social Survey.

Additionally, each section includes quizzes, practical exercises with worked solutions, and access to a dedicated discussion forum where you can ask questions, clarify concepts, and receive support as you apply the material to your own data.

Who this course is for

This course is for PhD students and early-career researchers who want to develop practical and transferable skills in R. Moreover, it is particularly appropriate for social scientists transitioning from SPSS, Stata, or Excel, as well as for policy, education, and other applied researchers who need modern, transparent, and reproducible data workflows. By focusing on core research tasks—data wrangling, data visualisation, and statistical analysis—the course provides a strong foundation for working with complex social data. It also prepares you to progress to more advanced topics, such as mediation and moderation analysis.

Testimonials

Thoroughly recommend anything taught by Alex.

Michelle Degli Esposti, Postdoctoral Researcher, University of Oxford

I owe Alex’s 2018 course my ‘re-birth’ as an R data manager and analyst.

Teresio Poggio, Research Assistant, University of Trento

Mediation and Moderation Analysis using R

A Complete Guide to Mediation, Moderation, and Causal Analysis Using R and Real-World Data

Understanding why and when relationships between variables occur is central to social science. This course provides a complete, hands-on introduction to the two frameworks that allow researchers to distinguish between a mediating vs moderating variable.

Mediation analysis examines how one variable influences another through an intermediary variable. For example, by investigating how education affects health through income or wellbeing. Moderation analysis examines when or for whom an effect is stronger or weaker. For instance, it can show whether the relationship between stress and health depends on gender or social support. Together, these methods reveal the structure of causal processes and provide deeper insights than simple regression models.

The course begins with the conceptual foundations of mediation vs moderation. It then progresses to advanced applications, including path analysis, structural equation modeling (SEM), longitudinal mediation, multi-group analysis, and causal mediation frameworks. In the process, you will learn to use R packages such as lavaan, mediation, and interactions to estimate, visualise, and interpret these models.

Each lesson combines video lectures, illustrated slides, and clear explanations with practical exercises based on real-world data — ensuring that all examples reflect realistic social research. Practical sessions guide you step-by-step through model estimation, diagnostics, and interpretation, helping you to distinguish between mediation vs moderation. Every exercise includes downloadable datasets, solutions, and R scripts, allowing you to replicate analyses and learn by doing. Additionally, quizzes and a community forum help you deepen your understanding of mediation and moderation.

Learning outcomes

  • Understand the logic and assumptions of mediation and moderation analysis.
  • Can separate a mediating vs. moderating variable.
  • Estimate and interpret interaction and mediation models using R.
  • Learn how to estimate moderation with the Johnson–Neyman method.
  • Build path models and SEMs to capture direct, indirect, and total effects.
  • Extend analyses to longitudinal and causal mediation frameworks.
  • Conduct and interpret sensitivity analyses to assess robustness.
  • Visualise and communicate results effectively through plots and model diagrams.

A course designed for you!

This course is designed for researchers, students, and analysts in the social, behavioural, and health sciences who already have a basic familiarity with regression analysis and want to better understand mediating vs. moderating variables. Whether you are working with survey data, experiments, or observational studies, you will gain the skills to design stronger studies, interpret results rigorously, and understand the mechanisms that drive social and behavioural outcomes.

Join the course to build a clear understanding of mediating vs moderating variables, and learn how to apply these techniques to your own research using transparent, reproducible, and data-driven methods. On the way, move your career forward by improving your statistical skills and getting better at using R for social research.

Testimonials

Alexandru Cernat is the best quantitative analysis teacher I have experienced. His courses are well thought out, and this one is the exact same. I feel my knowledge of mediation analysis has grown substantially, and the practicals accompanying the lectures are really useful.

Instructor

About the Instructor

Alexandru Cernat

Alexandru Cernat is a professor in the social statistics department at the University of Manchester. He has a PhD in survey methodology from the University of Essex and was a post-doc at the National Centre for Research Methods and the Cathie Marsh Institute. His research and teaching focus on: survey methodology, longitudinal data, measurement error, latent variable modelling, new forms of data and missing data. He am also the founder of longitudinalanalysis.com, a platform that helps researchers and analysts learn to collect, clean, and analyse longitudinal data. You can find out more about him and his research at: alexcernat.com.

Leanpub Podcast

Episode 267

An Interview with Alexandru Cernat

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub