Dear all,
I have cross-sectional data including the variables below. I need to generate a four-column vertical bar chart (with percentages) for the variable aid, grouped by
First Bar: Muslim" and others
Second Bar: Arab League" and others
Third Bar: Income Groups (HICs, UMICs, LMICs, and LDCs)
Four Bar: Regions (South of Africa and others).
May you help me to generate such a four-column bar chart?
Thank you so much,
Best,
------------------ copy up to and including the previous line ------------------
Listed 100 out of 224 observations
Use the count() option to list more
I have cross-sectional data including the variables below. I need to generate a four-column vertical bar chart (with percentages) for the variable aid, grouped by
First Bar: Muslim" and others
Second Bar: Arab League" and others
Third Bar: Income Groups (HICs, UMICs, LMICs, and LDCs)
Four Bar: Regions (South of Africa and others).
May you help me to generate such a four-column bar chart?
Thank you so much,
Best,
Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input float aid byte(muslimmajority arableague) str5 incomegr str15 region
. 0 . "" ""
. 0 . "" ""
4.82 1 0 "LDCs" "SCA"
0 0 0 "LDCs" "South of Africa"
. 0 . "" ""
.79 1 0 "UMICs" "Europe"
0 0 0 "HICs" "Europe"
. 0 . "" ""
. 0 . "" ""
.07 0 0 "UMICs" "South America"
0 0 0 "LMICs" "SCA"
. 0 . "" ""
5.05 0 0 "UMICs" "Caribbean"
0 0 0 "HICs" "Ocenia"
0 0 0 "HICs" "Europe"
0 1 0 "UMICs" "SCA"
.15 0 0 "LDCs" "South of Africa"
0 0 0 "HICs" "Europe"
0 0 0 "LDCs" "South of Africa"
0 1 0 "LDCs" "South of Africa"
0 1 0 "LDCs" "SCA"
0 0 0 "UMICs" "Europe"
0 1 1 "HICs" "MENA"
0 0 0 "HICs" "Caribbean"
.02 1 0 "UMICs" "Europe"
7.24 0 0 "UMICs" "Europe"
.01 0 0 "UMICs" "Central America"
. 0 . "" ""
.02 0 0 "LMICs" "South America"
.46 0 0 "UMICs" "South America"
0 0 0 "HICs" "Caribbean"
0 1 0 "HICs" "Far East"
.04 0 0 "LDCs" "SCA"
.03 0 0 "UMICs" "South of Africa"
0 0 0 "LDCs" "South of Africa"
0 0 0 "HICs" "North America"
. 0 . "" ""
0 0 0 "HICs" "Europe"
0 0 0 "HICs" "South America"
.16 0 0 "UMICs" "Far East"
.01 0 0 "LMICs" "South of Africa"
.36 0 0 "LMICs" "South of Africa"
0 0 0 "LDCs" "South of Africa"
1.53 0 1 "LMICs" "South of Africa"
. 0 . "" ""
.63 0 0 "UMICs" "South America"
21.3 1 1 "LDCs" "South of Africa"
0 0 0 "LMICs" "South of Africa"
.07 0 0 "UMICs" "Central America"
5.19 0 0 "UMICs" "Caribbean"
. 0 . "" ""
. 0 . "" ""
0 0 0 "HICs" "MENA"
0 0 0 "HICs" "Europe"
0 0 0 "HICs" "Europe"
.03 1 1 "LDCs" "South of Africa"
0 0 0 "UMICs" "Caribbean"
0 0 0 "HICs" "Europe"
0 0 0 "UMICs" "Caribbean"
0 1 1 "UMICs" "MENA"
.32 0 0 "UMICs" "South America"
245.81 1 1 "LMICs" "MENA"
192.67 0 0 "LDCs" "South of Africa"
. 0 . "" ""
0 0 0 "HICs" "Europe"
0 0 0 "HICs" "Europe"
51.62 0 0 "LDCs" "South of Africa"
0 0 0 "HICs" "Europe"
0 0 0 "UMICs" "Ocenia"
0 0 0 "HICs" "Europe"
. 0 . "" ""
0 0 0 "LMICs" "Ocenia"
0 0 1 "UMICs" "South of Africa"
0 0 0 "HICs" "Europe"
.01 0 0 "UMICs" "SCA"
1.47 0 0 "LMICs" "South of Africa"
. 0 0 "" ""
9.66 1 0 "LDCs" "South of Africa"
2.45 1 0 "LDCs" "South of Africa"
.03 0 0 "LDCs" "South of Africa"
0 0 1 "UMICs" "South of Africa"
0 0 0 "HICs" "Europe"
0 0 0 "UMICs" "Caribbean"
. 0 . "" ""
.23 0 0 "LMICs" "Central America"
. 0 . "" ""
0 0 0 "UMICs" "South America"
. 0 . "" ""
.18 0 0 "LMICs" "Central America"
0 0 0 "HICs" "Europe"
.05 0 0 "LDCs" "Caribbean"
0 0 0 "HICs" "Europe"
.8 1 0 "LMICs" "Far East"
.94 0 0 "LMICs" "SCA"
0 0 0 "HICs" "Europe"
.01 1 1 "UMICs" "MENA"
3.31 1 1 "UMICs" "MENA"
0 0 0 "HICs" "Europe"
0 0 0 "HICs" "MENA"
0 0 0 "HICs" "Europe"
end
Listed 100 out of 224 observations
Use the count() option to list more

Comment