Hello all,
I'm doing a similar graph to the one in this paper - https://www.imf.org/external/pubs/ft...14/wp14143.pdf (page 8).
Now I have two variables - current share of working age population (SWAP) and peak SWAP. I'm trying to create a stack bar graph with the current SWAP (one colour) and Peak Swap, another colour (note: some countries have already reached peak swap) but what Stata is doing is adding the two variable values together...
Here is my data:
I'm doing a similar graph to the one in this paper - https://www.imf.org/external/pubs/ft...14/wp14143.pdf (page 8).
Now I have two variables - current share of working age population (SWAP) and peak SWAP. I'm trying to create a stack bar graph with the current SWAP (one colour) and Peak Swap, another colour (note: some countries have already reached peak swap) but what Stata is doing is adding the two variable values together...
Here is my data:
Code:
clear input str32 Country double(SWAP_2015 Peak_Swap) "Burundi" .5272741 .64316753 "Comoros" .56933048 .65728474 "Djibouti" .63078075 .67825481 "Eritrea" .54583428 .66373454 "Ethiopia" .55075882 .6752352 "Kenya" .55288495 .64550963 "Madagascar" .55452848 .63910625 "Malawi" .51401631 .63617378 "Mauritius" .71114899 .71114899 "Mayotte" .5456481 .64491902 "Mozambique" .51347798 .64488812 "Réunion" .66122162 .66122162 "Rwanda" .56158108 .67136051 "Seychelles" .69676583 .69676583 "Somalia" .50470914 .65737982 "South Sudan" .54449607 .66458788 "Uganda" .49420458 .64950415 "United Republic of Tanzania" .51599338 .6323585 "Zambia" .51176454 .62643488 "Zimbabwe" .55435132 .66353703 "Angola" .55435132 .6519489 "Cameroon" .51655539 .64758323 "Central African Republic" .50036096 .65746906 "Chad" .54271729 .65729875 "Congo" .57091977 .63371238 "Democratic Republic of the Congo" .49828929 .64958036 "Equatorial Guinea" .53708436 .65976741 "Gabon" .51043131 .6508223 "Sao Tome and Principe" .5785317 .6444935 "Algeria" .57768201 .67315506 "Egypt" .54288116 .64962904 "Libya" .62608548 .70267025 "Morocco" .6552325 .66609702 "Sudan" .61619461 .65490064 "Tunisia" .65626445 .69051197 "Western Sahara" .66609702 .72124893 "Botswana" .56168695 .69203171 "Lesotho" .69051197 .6738113 "Namibia" .71342439 .66139968 "South Africa" .65106795 .68867583 "Swaziland" .64403688 .68244618 "Benin" .59785107 .66209546 "Burkina Faso" .59784735 .65626512 "Cabo Verde" .65727404 .70021433 "Côte d'Ivoire" .59062216 .64193763 "Gambia" .53359297 .67006621 "Ghana" .54950427 .66060156 "Guinea" .52034628 .65138075 "Guinea-Bissau" .65768876 .66073095 "Liberia" .54498757 .65465113 "Mali" .51501969 .65206248 "Mauritania" .57788729 .65308729 "Niger" .54404584 .64792137 "Nigeria" .56038811 .65813173 "Senegal" .5468282 .63063251 "Sierra Leone" .4995417 .68304356 "Togo" .56773692 .64915847 end
Comment