Researchers examined data from over 27,000 people in Sweden.