Thank you very much for your help. What is the stata code when we want summary statistics by year (for a panel data) using asdoc command? How can we also export the asdoc document to any directory we wanted?
For your second query, you can use the save() option of asdoc. So assume that you have a directory in C:/results and you want to save the output to this directory. You would use the save option as shown below.