check_interval          Check if a given interval is a sudden gain/loss
count_intervals         Count number of between-session intervals
                        available to identify sudden gains
create_byperson         Create a data set with one gain per person
create_bysg             Create a data set with one row for each sudden
                        gain/loss
define_crit1_cutoff     Define cut-off value for first SG criterion
describe_sg             Show descriptives for the sudden gains datasets
extract_values          Extract values around the sudden gain
identify_sg             Identify sudden gains.
identify_sl             Identify sudden losses.
plot_sg                 Plot average change in variables around the
                        sudden gain
plot_sg_intervals       Plot summary of available data per time point
                        and analysed session to session intervals
plot_sg_trajectories    Plot individual trajectories
rename_sg_vars          Rename variable names to a generic and
                        consistent format
select_cases            Select sample providing enough data to identify
                        sudden gains
sgdata                  Example dataset dataset with repeated measures
                        of depression and rumination
sgdata_bad              Example dataset dataset with repeated measures
                        of depression and rumination (bad variable
                        names)
write_byperson          Write a sudden gains data frame (byperson) to
                        CSV, SPSS, STATA or Excel files
write_bysg              Write a sudden gains data frame (bysg) to CSV,
                        SPSS, STATA or Excel files
