I have a regression model where the dependent variable is the difference in income between adjacent towns i and j. The independent variables are also differences in other parameters between these two towns. This way all unobservables are controlled for. I have multiple pairs of towns. These towns are close by according to a definition. So if I have a,b,c towns as adjacent, then I would essentially have 3 pairs - a,b ; b,c and a,c. I am then finding the difference in income and other variables and running the regression with these differences.
Alternatively, I also wanted to introduce town fixed effects so that all variables as long as they belong to same town are controlled for. In STATA, I ran the following code: encode town, g(town_number) regress income x y z i.town_number
The R squared for the first and second model are significantly different. I understand that fixed effects model has many more independent variables and thus has a higher R squared. But even the adjusted R squared is higher for the fixed effects model. What is the reason for this? Thanks in advance.
https://bit.ly/3qVGz1X
– StatsStudent Sep 04 '23 at 11:06