Announcement

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

  • Saving output of multiple regressions in one excel

    Hi all,

    I need to export outcomes of multiple regressions that I run in the stata using foreach command.

    foreach v of varlist LogIndustriallagged1380-LogIndustriallagged1800 {
    xtreg Spot `v'
    }

    Can you help me with adding a command that would save outcomes of all regressions in one Excel file ?

    Regards,
    Agata
    Last edited by Agata Holland; 17 Feb 2018, 09:15.

  • #2
    Dear Agata Holland, You can use putexcel codeto export your result into excel file.

    Comment


    • #3
      Code:
      foreach v of varlist LogIndustriallagged1380-LogIndustriallagged1800 {
      xtreg Spot `v'
      eststo result`v'
      }
      esttab using myoutput.csv, replace

      Comment

      Working...
      X