We performed a mediation analysis of the effect of baseline BPF and WMHV (mediators) on the association between diabetes and dementia risk using linear and Cox models adjusted for age, sex, education level, hypertension, hypercholesterolemia, BMI, smoking and alcohol drinking status, APOE-ε4 status, and study site. At baseline, 8.8% of the participants had diabetes. The gene discussed is APOE; the disease is diabetes mellitus.