tab and collapse caneasily finish the task, sumat is a very good command, just like tabstat,When add save option, then a useful matrix can be generated and called.
thank you very much, I learned a very good command
I got a idea to reduce the double loops to one and then do the loop
generate a new variable c to to represent a and b
then a macro i can be used in loopse
thank you very much, I learned a very good command
I got a idea to reduce the double loops to one and then do the loop
generate a new variable c to to represent a and b
Code:
gen c = group(a b) or xgroup a b,gen(c)
Code:
levelsof c,gen(i)
Comment