Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absorbing interaction terms and including them in the regression shows different results #177

Open
toh2972 opened this issue May 31, 2019 · 2 comments

Comments

@toh2972
Copy link

toh2972 commented May 31, 2019

Dear Sergio

I wanted to run this regression of individuals' grade on sat and race with a list of interaction terms which is just an interaction of individuals' colleges with the running year variable:

reghdfe grade sat race, absorb( i.college#c.year)

However the coefficient on sat and race is different if I include the interaction terms individually in the regression using "reg"

reg grade sat race i.college#c.year

Is there an intuitive reason behind this discrepancy and if so is there a way to have reghdfe show the same results as just using reg when including these interaction terms?
Thank you in advance.

@sergiocorreia
Copy link
Owner

Three things:

  1. What version of reghdfe are you using? the latest from Github?
  2. Are you sure you don't want to also add a different intercept for each college? i.e. use absorb(i.college##c.year)
  3. If you just want to use a simple # (i.e. different slope but not intercept), the help file mentions that the computation is not as numerically accurate, so you might want to use a stricter tolerance.

@toh2972
Copy link
Author

toh2972 commented Jun 2, 2019

Thank you Sergio for the helpful reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants