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). This evidence concerns the gene INS and depressive disorder.