Hello everyone,
I currently have a panel dataset with the ID variable and Year variable. I am missing an Annual Unemployment Rate variable in my data; therefore, I merge my current data with separate data containing the Annual Unemployment. An example of the separate data containing the Annual Unemployment is as follows:
And I use the m:1 merging technique, with the key variable being Year, to merge my current data with that data.
However, when I run a regression:
it returns an error of "omitted because of collinearity." I include "i.year" because I want to include the time dummy variable to capture the year-fixed effect. I see some papers that include the annual unemployment rate and time dummy variable in one regression as well, so I do not understand why I have this problem. Does anyone know why I have this problem since I fail to understand why Year and un_rate have collinearity?
Are there any solutions to this problem? Thank you so much in advance.
I currently have a panel dataset with the ID variable and Year variable. I am missing an Annual Unemployment Rate variable in my data; therefore, I merge my current data with separate data containing the Annual Unemployment. An example of the separate data containing the Annual Unemployment is as follows:
Code:
clear input Year un_rate 2000 0.0690 2002 0.0565 2003 0.0422 2005 0.0963 end
However, when I run a regression:
Code:
reg y x1 x2 i.year un_rate
Are there any solutions to this problem? Thank you so much in advance.

Comment