Whether recurrent depression was associated with increased comorbidity compared to single-episode depression was tested using logistic regression for each additional diagnosis while adjusting for age. Individuals were grouped in five-year age bins to construct dummy variables for the age adjustment (Extended Data Figure 2).