Code for Edmondson-Stait et al., 2022
Folders include Scripts
for code to run the analysis and Output
for the output from these scripts.
1_Clean_data.R
- preprocesses initial dataset to extract variables of interest2_Explore_data.R
- create figuresdemographics.R
- create demographic tables
- Create polygenic risk scores on HPC Eddie. Please see the
master.sh
script inScripts/
for order to run scripts.
- Create DNAm scores and PCs of residualised CpGs on HPC Eddie. Please see the
master.sh
script inScripts/
for order to run scripts.
- Conduct multiple imputation on missing data. Please see the
master.sh
script inScripts/
for order to run scripts.
- Carry out all the regression analysis, create tables and figures. Please see the
combine_results.R
script inScripts/
for order to run scripts.
If there are any errors or if you have any suggestions for improvements please contact me at amelia.edmondson-stait@ed.ac.uk.