Announcement

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

  • reghdfe regression with constants in the table

    Hi, I use reghdfe , absorb() cluster() to generate a table. However, the table does not show the constant. Is there any way to include the constants in the table?

  • #2
    Dear Helen, Please try the following code (please ssc install outreg2).
    Code:
    sysuse auto, clear
    reghdfe price mpg rep78, a(foreign) vce(cl foreign)
    outreg2 using "temp", word excel replace
    Click image for larger version

Name:	temp.png
Views:	1
Size:	12.1 KB
ID:	1544607


    If it does not work, please reinstall reghdfe (http://scorreia.com/software/reghdfe/install.html).
    Ho-Chuan (River) Huang
    Stata 17.0, MP(4)

    Comment


    • #3
      Hi River, thanks for providing the code. I tried to run it but still cannot get the constant info in the result table.

      Comment


      • #4
        The constant is meaningless in fixed effects, so you should not bother reporting it. Just to answer your question, you are probably using an old version of reghdfe (from SSC, as you are asked to explain in FAQ #12), so just install the latest version which will report a constant.

        Code:
        ssc install reghdfe, replace

        Comment


        • #5
          Thank you! It works perfectly!

          Comment

          Working...
          X