Additional file 1: Supplementary Table 1. Diagnostic classifications for definition of type 2 diabetes and selected brain disorders. Supplementary Table 2. Crude and adjusted estimates based on logistic regression analyses and temporally ordered Cox regression analyses. Supplementary Table 3. Temporally ordered analyses of sex-specific associations between diagnoses of brain disorders and type 2 diabetes. Supplementary Table 4. Adjusted estimates based on logistic regression analyses and temporally ordered Cox regression analyses without and with adjustment for highest attained level of education. Supplementary Table 5. Adjusted estimates based on logistic regression analysis applying the main and two alternative register-based T2DM definitions.