Dear Colleagues,
I am trying to conduct a diff-in-diff analysis with fixed effects in my panel. My entities are countries. I have created my diff-din-diff variables manually. I have only 1 treated country and that is the UK, where the remaining 7 countries are my control entities.
The problem is when I run my "xtreg treated post2014 didestimator controls, fe vce(cluster country_id)", I receive an error called "omitted because of collinearity". The issue is obvious. Since the treated variable is 1 for the UK and 0 for the all the other countries, and this does not change over time, the fixed effects model deletes the time-invariant variables. I have read a similar topic but could not see any recommendation other than running a random effects (which I have no issue but have to run a fixed-effects model too)
I will appreciate your help on this issue.
* didestimator is the interaction term between treated and post2014
I am trying to conduct a diff-in-diff analysis with fixed effects in my panel. My entities are countries. I have created my diff-din-diff variables manually. I have only 1 treated country and that is the UK, where the remaining 7 countries are my control entities.
The problem is when I run my "xtreg treated post2014 didestimator controls, fe vce(cluster country_id)", I receive an error called "omitted because of collinearity". The issue is obvious. Since the treated variable is 1 for the UK and 0 for the all the other countries, and this does not change over time, the fixed effects model deletes the time-invariant variables. I have read a similar topic but could not see any recommendation other than running a random effects (which I have no issue but have to run a fixed-effects model too)
I will appreciate your help on this issue.
* didestimator is the interaction term between treated and post2014
(1) | |
VARIABLES | Model 6 |
o.treated | - |
post2014 | 0.915 |
(0.898) | |
didestimator | -2.398* |
(1.092) | |
GDP_GROWTH | -0.0304 |
(0.0297) | |
INFLATION | 0.114 |
(0.330) | |
UNEMP | -0.268 |
(0.191) | |
Constant | -0.521 |
(0.975) | |
Observations | 259 |
R-squared | 0.109 |
Number of country_id | 8 |
Comment