Lifetime endogenous estrogen exposure in women influences risk of dementia