Creating dummy variables for panel data
Posted: Thu Sep 06, 2012 12:04 am
Dear all,
I am working on my dissertation and have problems on creating dummy variables in fixed effects model. My dependent variable is net income inequality (nii) and 3 explanatory variables: GDP(lggdp), GDP squared(lggdp2) and degree of openess(openess). The balanced panel data covers 13 countires in the period of 1979-2009. How can I generate a dummy variable which takes the value 1 if a fiscal consolidation is undertaken in the UK in year 1979,1980,1981,1982 and 1994-1999 and is undertaken in Sweden in year 1984,1993-1998, takes the value 0 otherwise ? or do I have to create two dummy variables seperatley for 2 countries?
I attached my workfile below. Hope my questions make sense and someone could help.
Many thanks :)
I am working on my dissertation and have problems on creating dummy variables in fixed effects model. My dependent variable is net income inequality (nii) and 3 explanatory variables: GDP(lggdp), GDP squared(lggdp2) and degree of openess(openess). The balanced panel data covers 13 countires in the period of 1979-2009. How can I generate a dummy variable which takes the value 1 if a fiscal consolidation is undertaken in the UK in year 1979,1980,1981,1982 and 1994-1999 and is undertaken in Sweden in year 1984,1993-1998, takes the value 0 otherwise ? or do I have to create two dummy variables seperatley for 2 countries?
I attached my workfile below. Hope my questions make sense and someone could help.
Many thanks :)