Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • saving regression results without copy-pasting them from the results window

    Dear all,

    I'm running something like

    xtreg y i.id x, re

    and I want to save its results as a picture (or whatever possible), BUT not by copy-pasting them from the results window (because I'll run multiple regressions, and I want to command Stata to automatically save their results in between running them).

    Do you know the command for this problem? I'd greatly appreciate your help.

    Thank you very much, and I hope to hear from you.

    Best,


    John

  • #2
    There are several different ways in which you can preserve the results of regressions.

    First of all, you can keep a running log as you work. In fact, you should be doing that anyway so that you have an audit trail of your entire project. See -help log- and the corresponding section of the user manual. That will preserve it "in writing." If you need to share those logs with people who don't have Stata, you can use the -translate- command to make PDFs or text files from them.

    If you do not like the layout that Stata provides for regression results and would like a more customized written display of them, you can download the -esttab- or -estout- commands from SSC. They have lots of options that give you detailed control over both content, layout, and formatting. That large degree of flexibility comes at the price of having many options and sub-options that can be difficult to remember from one occasion to the next. On the other hand, if there is one standard format that you use all the time, you can obtain it instantly and effortlessly with a single command.

    If you need to preserve your regression results in a machine-readable form, so that you can bring them back into Stata and start using -predict- or -margins- or other post-estimation commands without having to re-run the regressions, see -estimates store- (which will preserve them in Stata memory, but then they go away after you close Stata), or -estimates save-, which creates a .ster file on disk, that can be read back in during another Stata session with the -estimates use- command.

    Comment


    • #3
      You might also look at outreg2 which like estout also writes from estimation results into a variety of text editing formats (e.g., word).

      Comment


      • #4
        Thank you for your replies. While embarrassing, I was not aware of keeping a running log, and it essentially solves all my worries. Thank you very much again for your help!

        Comment

        Working...
        X