The associations of cognitive impairment with smoking, alcohol consumption, physical activity, dietary pattern, and body weight did not vary by APOE genotype (all Ps > 0.05). Here, APOE is linked to Cognitive impairment.