Study Title: Insights from nine nights of self-applied, low-density sleep EEG during sleep restriction therapy: a proof-of-concept evaluation
Principal Investigator: Dr Emily Stanyer | University of Oxford This repository contains the complete analytical pipeline for processing actigraphy, light, sleep diary and EEG data from the RESTORE Study.
This project is licensed under the Creative Commons Attribution 4.0 International (CC-BY 4.0). See the LICENSE file for details.
The preprint associated with this analysis pipeline is available on medRxiv:
Read the RESTORE Study preprint on medRxiv
Insights from nine nights of self-applied, low-density sleep EEG during sleep restriction therapy: a proof-of-concept evaluation.
To run these scripts, you will need R (≥ 4.2.0) and the following packages:
install.packages(c("tidyverse", "LightLogR", "patchwork", "lme4", "emmeans", "flextable", "here"))
If you use this code, data, or the findings from the RESTORE study in your research, please cite it as follows:
- Dr Emily Stanyer, RESTORE Study Analysis (2026).
APA Style: Stanyer, E.C. (2026). RESTORE Study: Analysis Pipeline (Version 1.0.0). GitHub. https://github.com/emstanyer/The-RESTORE-Study
BibTeX:
@software{RestoreEEG2026,
author = {Stanyer, Emily},
title = {RESTORE Study: Analysis Pipeline},
year = {2026},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{[https://github.com/emstanyer/The-RESTORE-Study](https://github.com/emstanyer/The-RESTORE-Study)}}
}