You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reghdfe automatically run an OLS regression with a constant, and the current 'noconstant' option only suppresses the reporting of the constant. Is there a way to run an OLS regression without a constant? I tried to generate a constant variable, and add it into absorb(), so that the constant is absorbed. However, there is still a reported constant there.
e.g. gen cons = 1 reghdfe y x ctrl-vars, absorb(fe-var1 fe-var2 cons)
Is there a way to run an OLS regression without a constant?
Thanks!
Toyo
The text was updated successfully, but these errors were encountered:
reghdfe doesn't include constants in the traditional sense, but any model with FEs implicitly has a constant, as the constant can be reproduced as the sum of all the dummies underlying the fixed effect. For instance, if you have country FEs then adding the dummies of each of the countries would give you a vector of 1s.
What reghdfe does is the back-off the constant from the average of the first fixed effect. However, I wonder what exactly are you trying to achieve? EG if in your example you put "cons" first in absorb() then you might be able to do what you are intending.
I'm facing the same issue here.
In a event study setting, where the variables or interest are saturated, using the normal regress, I can discard the constant:
reg y minus3 minus2 minus1 plus0 plus1 plus2 plus3, noconstant
But in reghdfe, the noconstant simply does not report constant, and the estimation of post_plus3 will be automatically dismissed.
Dear Sergio,
reghdfe
automatically run an OLS regression with a constant, and the current 'noconstant' option only suppresses the reporting of the constant. Is there a way to run an OLS regression without a constant? I tried to generate a constant variable, and add it intoabsorb()
, so that the constant is absorbed. However, there is still a reported constant there.e.g.
gen cons = 1 reghdfe y x ctrl-vars, absorb(fe-var1 fe-var2 cons)
Is there a way to run an OLS regression without a constant?
Thanks!
Toyo
The text was updated successfully, but these errors were encountered: