In my research I have monthly data from June 2006 to July 2016 for two different countries.I start by creating a country code to give a number to each country then I move to create my time variables. The issue is that when I tell Stata that my data is panel data using xtset Stata changes automatically the order of my time variables. basically 2006 goes at the bottom while 2010 is at the top. The issue is that I need them to be in order because I am going to use Difference in difference; therefore I'll need to create a time dummy later one. I cannot understand what is wrong with it... thank you very much in advance
This is the code I use
xtset countrynum date, monthly
This is the code I use
xtset countrynum date, monthly
Comment