In the final model, including APOE genotype, multimorbidity, living situation and early-onset epilepsy, the influence of sex on dementia diagnosis was lost. Here, APOE is linked to epilepsy.