To account for the fact that some control participants may be mislabeled because of a short history of EHR visits, we restricted our dataset to only individuals with greater than one year of EHR visits (n = 218,542) and found that this did not affect the association between APOE and dementia status (Supplementary Figure 1). Here, APOE is linked to dementia.