Our multivariable GLM analysis, adjusted for age and stratified by sex, demonstrated the complex interplay between DM, depression, APOE E4, and AD, underscoring their roles in the pathogenesis of AD. Here, APOE is linked to depressive disorder.