APOE and type 2 diabetes mellitus: In Fig. 1 and Supplementary Tables 2–5, results of Cox regression analyses with PRS 1–7 for type 2 diabetes (standardized) as exposure and time to first dementia event (all-cause dementia, mixed dementia, Alzheimer’s disease and vascular dementia, respectively) as outcome are presented, adjusted for age, sex and education in ‘Model 1’ and for age, sex, education and APOE burden (APOE ε4 and ε2 count) in ‘Model 2’.