Scientists looked at data from over 2,000 Danish twins born over a three-decade span.