asdocx: Export from Stata to Word, Excel, LaTeX & HTML › Forums › asdocx Forum › ordering the categories of a by() bysort variables in summary / tabulation command asdocx
Tagged: by, order of variables, output table
Is there a way I can tell stata to put the categories of the by command in a different order?
The by() or the bysort prefix follow the logical order when the by() variable is numeric and alphabetical order when it is string. You can read this FAQs on Stata official site to modify the ordering of the categories of the by() variable
by()
bysort
Please enter an answer in digits: