The study used data from long-term follow-up of participants in the Swedish National Study on Aging and Care, which included information about dietary choices. The researchers focused on participants who had Apolipoprotein E4 (APOE4), a genetic variant known to increase the risk of dementia.
Apolipoprotein E modifies response to dietary factors, according to this publication.