编辑一段英文文本，使其更加简洁或更加易于理解。


The purpose of this study was to investigate the effects of stress on cognitive function in elderly adults.
This study aims to examine how stress affects cognitive function in older adults.