Announcement

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

  • How to absorb both firm and time dummies in fixed effects?

    Dear all

    I have a panel dataset. I want to control for both firm and month fixed effects in my OLS regression. The command I used is xi: areg dependent_variable independent_variables i.month, absorb(firm_identifier) robust cluster(firm_id). The problem is that Stata creates all the month dummies and report their coefficients in the output. This makes the program run slowly. I want Stata to absort month dummies too. How can I do that? Any help would be appreciated.

    Regards
    Shuang Liu

  • #2
    Code:
    ssc install reghdfe
    reghdfe depvar i.vars a(firm month) vce(firm)

    Comment


    • #3
      Dear Andrew

      Thank you very much.

      Regards
      Shuang

      Comment

      Working...
      X