INS and major depressive disorder: We used Cox proportional hazards models to compare the time from diabetes diagnosis to the first prescription of each of metformin and insulin in people with and without a hospital admission record of SMI (schizophrenia, bipolar disorder or depression prior to diabetes diagnosis).