Home Forums ASDOC : Easy Publication Quality Tables in Stata Summary Statistics by Year using asdoc in Stata

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Embaye
    Participant
    Post count: 1

    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?

    Attaullah Shah
    Keymaster
    Post count: 69

    If you want to repeat the summary statistics by year, you can use the bysort prefix. see the following example,

    webuse grunfeld, clear
    bys year: asdoc sum, replace

    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.

    webuse grunfeld, clear
    bys year: asdoc sum, replace save(C:/results/Myfile.doc)
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.