Hi,

I have a bunch of variables, say: a,b,c,d,e. I want to do ttest by different classification. The classification variable is: aa, bb, cc, dd, ee

I understand that I can use ttable to generate a beautiful table of t test between two groups of many variables. Is there any way to generate a table with only one variable but by different classification standard, like: ttable a, by(aa, bb, cc, dd, ee)

(Stata does not allow more than one variable in by statement)

I appreciate it very much if someone can tell me some new functions or any other way to get what I want.

Thanks!