Endogenous sex hormone levels and cognitive function in aging men