Time to lapse and relapse were examined with Cox regressions ; longest period of abstinence was examined with a t test , and ecological momentary assessment data were examined with generalized linear mixed models .