This is the website for paper "Evaluating the causal effect of tobacco smoking on white matter brain aging: a two-sample Mendelian randomization analysis in UK Biobank".
BAGcalculation.txt contains the Python code for calculating brain aging gap (BAG)
MRanalysis.R contains the R code for the Mendelian randomization (MR) analysis using different methods.