R code accompanying a study of overnight distress alleviation and subsequent anxiety outcomes.
00_helpers.R Shared functions
00_tables.R Descriptive tables
01_analysis.R Statistical analyses and figure
The code was developed in R 4.4.2. Required packages are listed in the scripts.
The individual-level sleep EEG and clinical data are not included in this repository.