Overall probability of any mental and behavioral disorder diagnosis of treatment-exposed and nonexposed children, from Kaplan-Meier analyses. See Figure 1 for definitions of term and preterm births. See eTable 2 in the Supplement for definition of any mental and behavioral disorder. See eTable 5 in the Supplement for the median age at first diagnosis of any mental and behavioral disorder in the entire cohort of children and in term and preterm children. Hazard ratios (HRs), 95% CIs, and P values are from multivariable Cox proportional hazard models adjusting for maternal age at delivery, parity, mode of delivery, maternal smoking during pregnancy, prepregnancy body mass index, premature rupture of membranes (International Statistical Classification of Diseases and Related Health Problems, Tenth Revision [ICD-10] code O42), gestational diabetes (O24), hypertension in pregnancy (O10, O13-O15), and any lifetime mental disorder diagnosis (F00-F99), child sex, Apgar score (maximum at 1 and 5 minutes), admission to neonatal intensive care unit, weight, and gestational age at birth. The age of the oldest child at the last date of follow-up was 11.0 years.