Change from baseline in suicidal ideation (BSS score), A depression (BDI score), B anxiety (BAI score), C BPD symptoms (ZAN-BPD-SRV), D, and socio-occupational functioning (SAS-SR score, E) from before (BL) to each timepoint after infusion. Error bars represent standard error of the mean. In F, we show correlation between socio-occupational functioning at Day 14 (when group difference was observed) and depression score. Shaded areas represent 95% confidence intervals. For all panels, solid black lines with solid dots indicate ketamine group results, and dashed line with open triangles indicate midazolam group results. Abbreviations: Beck Scale for Suicide Ideation (BSS), Beck Depression Inventory (BDI), Beck Anxiety Inventory (BAI), Zanarini Scale for Borderline Personality Disorder Self Report Version (ZAN_BPD_SRV), Borderline Personality Disorder (BPD), Social Adjustment Scale–Self Report (SAS-SR), Baseline (BL), 1 h (1HR), Day 1 (D1), Day 3 (D3), Day 7 (D7), Day 14 (D14), Day 28 (D28).