Identify Sudden Gains in Longitudinal Data
Check if a given interval is a sudden gain/loss
Count number of between-session intervals available to identify sudden...
Create a data set with one gain per person
Create a data set with one row for each sudden gain/loss
Define cut-off value for first SG criterion
Show descriptives for the sudden gains datasets
Extract values around the sudden gain
Identify sudden gains.
Identify sudden losses.
Pipe operator
Plot average change in variables around the sudden gain
Plot summary of available data per time point and analysed session to ...
Plot individual trajectories
Rename variable names to a generic and consistent format
Select sample providing enough data to identify sudden gains
Write a sudden gains data frame (byperson) to CSV, SPSS, STATA or Exce...
Write a sudden gains data frame (bysg) to CSV, SPSS, STATA or Excel fi...
Identify sudden gains based on the three criteria outlined by Tang and DeRubeis (1999) <doi:10.1037/0022-006X.67.6.894> to a selection of repeated measures. Sudden losses, defined as the opposite of sudden gains can also be identified. Two different datasets can be created, one including all sudden gains/losses and one including one selected sudden gain/loss for each case. It can extract scores around sudden gains/losses. It can plot the average change around sudden gains/losses and trajectories of individual cases.
Useful links