Hi everyone
I have an issue with a variable I have generated to control for the economic crisis
What I did was as follows:
This is to control for the financial crisis that started from 2008 onwards and then I tried to see if this variable is significant to tell something about the data.
Now the problem is that I found out that the order of the variable does not hold, i.e. when sorting the data according to the ID number the crisis variable values (0 and 1) does not correspond or match the correct year. For example I sometimes finds them as 1 against the year 2006 whereas it should be against 2008-2011.
Does anyone have a clue?
I have an issue with a variable I have generated to control for the economic crisis
What I did was as follows:
Code:
generate crisis = year > 2007
Now the problem is that I found out that the order of the variable does not hold, i.e. when sorting the data according to the ID number the crisis variable values (0 and 1) does not correspond or match the correct year. For example I sometimes finds them as 1 against the year 2006 whereas it should be against 2008-2011.
Does anyone have a clue?

Comment