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 › Reply To: ordering the categories of a by() bysort variables in summary / tabulation command asdocx
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