The code below returns what I need but I would like to reverse the coding of my group variable such that the ttest examines diff = mean(1.Yes)-mean(0.No) instead of diff = mean(0.No) - mean(1.Yes). Adding the reverse option should do the job but it returns an error of "option reverse not allowed":
ttest CESD , by(mygroupvar)

Comment