Related Experiment Video
Updated: Dec 26, 2025

A User-friendly and Powerful R Analysis of Large-scale Datasets
Published on: November 4, 2025
suddengains: An R package to identify sudden gains in longitudinal data
Milan Wiedemann1,2, Graham R Thew1,2,3, Richard Stott4
1Department of Experimental Psychology, University of Oxford, Oxford, United Kingdom.
Abstract:
Sudden gains are large and stable improvements in an outcome variable between consecutive measurements, for example during a psychological intervention with multiple assessments. Researching these occurrences could help understand individual change processes in longitudinal data. Three criteria are generally used to identify sudden gains in psychological interventions. However, applying these criteria can be time consuming and prone to errors if not fully automated. Adaptations to these criteria and methodological decisions such as how multiple gains are handled vary across studies and are reported with different levels of detail. These problems limit the comparability of individual studies and make it hard to understand or replicate the exact methods used. The R package suddengains provides a set of tools to facilitate sudden gains research. This article illustrates how to use the package to identify sudden gains or sudden losses and how to extract descriptive statistics as well as exportable data files for further analysis. It also outlines how these analyses can be customised to apply adaptations of the standard criteria. The suddengains package therefore offers significant scope to improve the efficiency, reporting, and reproducibility of sudden gains research.
Related Concept Videos
Interpreting R Charts
An R chart plots the range of subsets of measurements collected from a process. Each point on the chart represents the range—defined as the difference between the maximum and minimum...
Longitudinal Studies
Friedman Two-way Analysis of Variance by Ranks
Comparing the Survival Analysis of Two or More Groups
Statistical Analysis: Overview
One of the most commonly used statistical quantifiers is the mean, which is the ratio between the sum of the numerical values of all results and the...
Longitudinal Research

