Hello all,
I have been working on a balanced panel dataset. I have two treatment groups and one control, i.e. three groups of countries for which I generated three dummies ("D1", "D2" and "D3") to use in the DiD regression. Each dummy equals 1 for the specified group of countries and 0 otherwise. No country belongs to more than one of the three groups. Furthermore, there's a time dummy which I indicate as "postevent", i.e., a dummy variable that equals 1 after a specific date (using monthly data) and 0 before that date. I am studying the effect of the treatment variable on a dependent variable "y" using the following regression, where countries are indicated by "c" and time and cross fixed effect are considered:
The problem is that then I get the outcome that the interaction term of one of my last dummy (D3) is omitted due to collinearity:
Initially I had a DiD with one control and one treatment group which works fine but I wanted to be more specific and defined a new country group and separated in from the other countries as explained above, however, it does not work like this and I don't know what I have missed or what mistake I have made. Unfortunately, I cannot include my data in the post. I hope the question is clear enough, otherwise please go ahead and ask me. I would appreciate your suggestions. How could I add the third groups of countries and still get a sane result?
Best,
Shadi
I have been working on a balanced panel dataset. I have two treatment groups and one control, i.e. three groups of countries for which I generated three dummies ("D1", "D2" and "D3") to use in the DiD regression. Each dummy equals 1 for the specified group of countries and 0 otherwise. No country belongs to more than one of the three groups. Furthermore, there's a time dummy which I indicate as "postevent", i.e., a dummy variable that equals 1 after a specific date (using monthly data) and 0 before that date. I am studying the effect of the treatment variable on a dependent variable "y" using the following regression, where countries are indicated by "c" and time and cross fixed effect are considered:
Code:
reg y i.D1##i.postevent i.D2##i.postevent i.D3##i.postevent i.c i.date, cluster(c)
Code:
note: D3 omitted because of collinearity. note: D3#1.postevent omitted because of collinearity. ...
Best,
Shadi
Comment