Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str33 country float(countrygenid unemployment_recipients_2000 unemployment_recipients_2005 unemployment_recipients_2007) "Albania" 2 10.2 . . "Albania" 2 . 6.7 . "Albania" 2 . . 7.8 "Albania" 2 . . . "Albania" 2 . . . "Albania" 2 . . . "Albania" 2 . . . "Algeria" 3 7.3 . . "Algeria" 3 . . . "Argentina" 5 . . . "Argentina" 5 . 2.3 . "Argentina" 5 . . 4.3 end
In the dataset above, I have a variable for each year of the indicator that I'm looking at. I want the country ids to be unique indentifiers - that is, I want all observations for the same country to be on the same line. How can I do this? Thank you in advance!
0 Response to Observations for the same ID on multiple lines
Post a Comment