There were inverse linear associations between habitual coffee consumption and total brain (fully adjusted β per cup −1.42, 95% CI −1.89, −0.94), grey matter (β −0.91, 95% CI −1.20, −0.62), white matter (β −0.51, 95% CI −0.83, −0.19) and hippocampal volumes (β −0.01, 95% CI −0.02, −0.003), but no evidence to support an association with white matter hyperintensity (WMH) volume (β −0.01, 95% CI −0.07, 0.05). The association between coffee consumption and dementia was non-linear (Pnon-linearity = 0.0001), with evidence for higher odds for non-coffee and decaffeinated coffee drinkers and those drinking >6 cups/day, compared to light coffee drinkers. After full covariate adjustment, consumption of >6 cups/day was associated with 53% higher odds of dementia compared to consumption of 1–2 cups/day (fully adjusted OR 1.53, 95% CI 1.28, 1.83), with less evidence for an association with stroke (OR 1.17, 95% CI 1.00, 1.37, p = 0.055).
It appears to be a straight comparison, with no correction for other factors, such as alcohol consumption.
It appears 1-2 cups a day of coffee had less dementia than people who did not drink coffee, those who drank decaffeinated coffee, and those who drank more than six cups of coffee a day.
I do not find the results to be particularly convincing. They need to check multitudinous other factors.