In an intent-to-treat analysis , clonidine produced the longest duration ( in consecutive days ) of abstinence from opioids during the intervention phase ( 34.8 days [ SD = 3.7 ] compared with 25.5 days [ SD = 2.7 ] ; Cohen 's d = 0.38 ) .