A dataset of children born between 1995 and 2019 who were tracked for years afterward offered scientists a rare opportunity to investigate drug use.