Announcement

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

  • How to export first-stage result using outreg2 after using ivreghdfe

    hello everyone, I've recently encountered an issue while using `ivreghdfe`. No matter what I do, I can only output the second-stage results. How can I modify my code so that the first-stage results can also be displayed? My current code is as follows:

    `ivreghdfe y (x = z) $control, ab(i.company i.industry i.year) r first`
    `est store first`
    `outreg2 using iv.doc,replace tstat bdec(3) tdec(2) keep(z $control) addtext(company FE, YES,industry FE, YES, year FE, YES) ctitle(first)`

    However, it only outputs the second-stage results, and the first-stage results are not displayed.
Working...
X