Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str18 B str12 Afghanistan str8 Albania str7 Algeria str6 Angola "1940" "1" "6" "1" "1" "1941" "1" "6" "1" "1" "1942" "1" "6" "1" "1" "1943" "1" "6" "1" "1" "1944" "1" "6" "1" "1" "1945" "1" "6" "1" "1" "1946" "1" "6" "1" "1" "1947" "1" "6" "1" "1" "1948" "1" "6" "5" "1" "1949" "1" "6" "1" "1" "1950" "1" "6" "1" "1" "1951" "1" "6" "1" "1" "1952" "1" "6" "1" "1" "1953" "6" "6" "1" "1" "1954" "6" "6" "1" "1" "1955" "6" "6" "1" "1" "1956" "6" "6" "1" "1" "1957" "6" "6" "1" "1" "1958" "6" "6" "1" "1" "1959" "6" "6" "1" "1" "1960" "6" "6" "1" "1" "1961" "6" "6" "1" "1" "1962" "6" "6" "1" "1" "1963" "6" "6" "1" "1" "1964" "6" "6" "3" "6" "1965" "6" "6" "3" "6" "1966" "6" "6" "3" "6" "1967" "6" "6" "3" "6" "1968" "6" "6" "3" "6" "1969" "6" "6" "3" "6" end
- The whole dataset contains almost 200 countries over the 1940-2016 period.
- My question is: How cam I obtain a standard panel data (long format) with country data (over years) stacked by country data? Thanks.
0 Response to stack or reshape?
Post a Comment