Code of the MR analyses for: “Testing the causal relationships of physical activity and sedentary behaviour with mental health and substance use disorders: A Mendelian Randomisation study.”
Examples of the R code used for the MR analyses of:
- Physical activity/sedentary behaviour -> PTSD
- PTSD -> Physical activity/sedentary behaviour
Note. The same code was used for the MR analyses involving other types of psychiatric disorders.