Mediation analyses indicated that TNFRSF11B, APOE and C7 may partially mediate associations between modifiable risk factors and dementia. This evidence concerns the gene APOE and dementia.