the survfit.coxph function implemented in the survival R-package. All Cox’s analyses were conducted for both sexes combined and for females and males separately. In addition, HRR and absolute risk of developing 1) anxiety, 2) bipolar disorder, 3) schizophrenia, and 4) SUD were estimated in the iPSYCH subcohort excluding all depression cases, to obtain estimates in the general Danish population for comparison with the iPSYCH depression-cohort.