my data is in panel. countrycode year AFG 1990 .. 1991 .. 1992 .. .. BAN 1990 .. 1991 .. 1992
Now I would like merge a excel file which is consisting income based classification of countries: countrycode AFG Low income BAN Low middle income ANG Low middle income IND Low middle income BAH High income
How can I add this to the previous main file ?
I used merge m:m Country using "C:\Users\Dell\Downloads\merge file.dta" keep if _merge==3 drop _merge
But it mixed up the year and destroyed the organization or serial of the year like: countrycode year AFG 1992 .. 1990 .. 1991 .. .. BAN 1991 .. 1990 .. 1992