Hello friends,
I have the following data structure:
And I wish to achieve the following structure:
Thank you!
I have the following data structure:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str55 country int year float value str17 var "Afghanistan" 1971 100 "sptinc_p0p50_z_AF" "Afghanistan" 1972 100 "sptinc_p0p50_z_AF" "Afghanistan" 1973 100 "sptinc_p0p50_z_AF" "Afghanistan" 1971 100 "shweal_p0p50_z_AF" "Afghanistan" 1972 100 "shweal_p0p50_z_AF" "Afghanistan" 1973 100 "shweal_p0p50_z_AF" "Albania" 1971 100 "sptinc_p0p50_z_AF" "Albania" 1972 100 "sptinc_p0p50_z_AF" "Albania" 1973 100 "sptinc_p0p50_z_AF" "Albania" 1971 100 "shweal_p0p50_z_AF" "Albania" 1972 100 "shweal_p0p50_z_AF" "Albania" 1973 100 "shweal_p0p50_z_AF" "Algeria" 1971 100 "sptinc_p0p50_z_AF" "Algeria" 1972 100 "sptinc_p0p50_z_AF" "Algeria" 1973 100 "sptinc_p0p50_z_AF" "Algeria" 1971 100 "shweal_p0p50_z_AF" "Algeria" 1972 100 "shweal_p0p50_z_AF" "Algeria" 1973 100 "shweal_p0p50_z_AF" end
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str55 country int year float(value sptinc_p0p50_z_AF shweal_p0p50_z_AF) "Afghanistan" 1971 100 100 100 "Afghanistan" 1972 100 100 100 "Afghanistan" 1973 100 100 100 "Albania" 1971 100 100 100 "Albania" 1972 100 100 100 "Albania" 1973 100 100 100 "Algeria" 1971 100 100 100 "Algeria" 1972 100 100 100 "Algeria" 1973 100 100 100 end
Thank you!

Comment