Site icon Stata.Professor : Your Partner in Research

bysort prefix with date format in asdoc messes up the date order

Hope you are doing well with your endeavors. I have greatly benefited from your asdoc program in Stata and have used this in my first research paper. While using it again I came across a little query and was not able to resolve. I am running the follow command in Stata but the dates are not shown in their quarterly formats rather they get the random numbers: bys Time_period:asdoc sum var1 when I use the same code without asdoc command, the dates are shown in their proper format like 2019q1, 2019q2 etc. bys Time_period: sum var1 I believe this is something that asdoc fails to pick up and present in its proper format. It would be kind enough if you can clarify this bit. Thanking in anticipation
Exit mobile version