Announcement

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

  • Export entire regression output with estout

    Hi,

    I am trying without success to export the entire output of a simple regression (such as the one printed below) via the estout package, to then include it in .tex document.
    For some reason, I haven't found any indication as to how to do it, and I am left wondering if there even is a way to do so?

    I'd be forever grateful if someone could help.
    Many thanks in advance,


    Click image for larger version

Name:	Screen Shot 2022-10-09 at 7.07.21 PM.png
Views:	1
Size:	80.6 KB
ID:	1684891

  • #2
    Dear Juste,

    The estout requires you to store the results from your regressions before using the command.

    Code:
    clear all
    
    sysuse auto.dta, replace
    
    eststo: reg weight price
    
    estout * using myFileName, replace style(tex)
    I would also suggest looking at the help file for the estout command in Stata (see help estout in Stata) even though it is quite long. If it is not necessary that you use estout, I would suggest using esttab (see help esttab). It does more to format the output automatically.

    I hope this was of some help.

    Best,
    Salvatore

    Comment


    • #3
      Dear Salvatore,

      Thank you for getting back to me and for pointing me to the estout package. I have already spent hours reading the manual but it still remains unclear to me how you can export the entire output of the regression command. Like I just want to export to LaTeX the exact same table that you get when you run a simple "reg x y" command. Is there even any way to do so ?

      Best,

      Comment

      Working...
      X