| Literature DB >> 32150589 |
Milan Wiedemann1,2, Graham R Thew1,2,3, Richard Stott4, Anke Ehlers1,2,4.
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.Entities:
Year: 2020 PMID: 32150589 PMCID: PMC7062272 DOI: 10.1371/journal.pone.0230276
Source DB: PubMed Journal: PLoS One ISSN: 1932-6203 Impact factor: 3.240
Data patterns required to identify sudden gains.
| Pattern 1 | ∘ | • | • | • | • | ∘ |
| Pattern 2 | ∘ | • | • | • | ∘ | • |
| Pattern 3 | • | ∘ | • | • | • | ∘ |
| Pattern 4 | • | ∘ | • | • | ∘ | • |
Note. xn-2 to xn+3 represent any six consecutive measurement points within the data set. The minimum number of data points that must be present (•) in order to investigate the interval from xn to xn+1 as a potential sudden gain is four, arranged in one of the patterns shown. Note that the pregain (x) and postgain (x) data points must always be present. ∘ represents missing data.
Main functions of the suddengains R package.
| Function | Description |
|---|---|
| | Uses RCI formula to help determine a cutoff value for criterion 1 |
| | Checks if a given interval is a sudden gain/loss |
| | Identifies sudden gains/losses |
| | Creates a dataset with one row for each sudden gain/loss |
| | Extracts values on a secondary measure around the sudden gain/loss |
| | Generates summary descriptive statistics |
| | Creates plots of the average sudden gain, or individual case trajectories |
| | Selects cases to be included in the sudden gains analysis |
| | Exports CSV, SPSS, Excel, or STATA files of the sudden gains datasets |
Note. More details of each function can be found in the package documentation or using the help() function in R.
A sample of the output data frame created by the identify_sg() function.
|
|
|
|
|
|
|---|---|---|---|---|
| 1 | FALSE | FALSE | FALSE | 0 |
| 2 | ||||
| 10 | TRUE | TRUE | TRUE | 1 |
| 12 | TRUE | FALSE | FALSE | 0 |
| 18 | FALSE | FALSE | ||
| 23 | FALSE | FALSE | TRUE | 0 |
Note. For the variables testing the three sudden gains criteria, referred to by ‘crit1’, ‘crit2’, and ‘crit3’ in the variable names TRUE indicates that the criterion is met, while FALSE indicates the criterion is not met. NA indicates that a particular criterion could not be tested for a sudden gain due to missing data.
Description of variables created by the create_bysg() and create_byperson() functions.
| Variable Name | Variable Label |
|---|---|
|
| Unique ID variable for every identified sudden gain / loss |
|
| Indicates whether all applied sudden gain criteria were met (No = 0; Yes = 1) |
|
| Pregain session number |
|
| Frequency of sudden gains / losses per person |
|
| Pre-pre-pre gain session score (N-2) |
|
| Pre-pre gain session score (N-1) |
|
| Pre-gain session score (N) |
|
| Post-gain session score (N+1) |
|
| Post-post gain session score (N+2) |
|
| Post-post-post gain session score (N+3) |
|
| Raw magnitude of sudden gain |
|
| Total change during treatment |
|
| Proportion of total change represented by the sudden gain |
|
| Reversal value |
|
| Indicates whether the reversal value was met at any point in treatment following the sudden gain (No = 0; Yes = 1) |
Note. The variable names listed including _bdi_ will reflect the name of the measure specified in the sg_measure_name argument.
Fig 1Plots of average changes around sudden gains.
(A) Average gain magnitude on the BDI across all sudden gains (B) Average changes in rumination (RQ) around sudden gains on the BDI. (C) Average gain magnitude on the BDI for two different treatments.
Fig 2Plots of trajectories for selected cases.
(A) Trajectories for a selection of individual cases. (B) Trajectories of BDI scores for all participants with a sudden gain between sessions 3 and 4.