Evaluated were the associations of the treatment group ( IM vs. IV ) with the primary outcome , defined as seizure cessation prior to emergency department ( ED ) arrival , and with patient characteristics , time to important events , and adverse events .