Hello,

I am examining socio-demographic differences in attitudes towards FGC practice. Here is an example of my data:

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input byte(FGC_GoodPractice Gender DOB RegionBirth)
0 2 3 1
0 2 1 1
0 1 3 1
0 1 3 1
0 1 3 1
0 2 1 1
0 1 1 1
0 1 1 1
0 2 1 1
0 1 3 1
end
label values FGC_GoodPractice labels20
label def labels20 0 "No", modify
label values Gender labels1
label def labels1 1 "Women", modify
label def labels1 2 "Men", modify
label values DOB labels0
label def labels0 1 "< 25", modify
label def labels0 3 "45-64", modify
label values RegionBirth labels2
label def labels2 1 "West Africa", modify



The following code gave me the relevant crosstabulations, shown below:


Code:
tabout Gender DOB RegionBirth FGC_GoodPractice using FGC_1.txt, ///
c(row ci) sum f(3) ///
style(tab) stats(chi2) font(bold) npos(col) cisep(-)


  
No Yes Don't Know N
% % % No. %
Respondent Sex
Women 77.1 20.8 2.2 371 100
Men 66.2 32.4 1.4 145 100
Respondent Date of Birth
< 25 75.8 23.1 1.1 264 100
45-64 72.5 24.6 2.8 211 100
> 64 67.6 29.7 2.7 37 100
African Region of Birth
West Africa 73 25.1 1.9 482 100
East Africa 88.9 7.4 3.7 27 100
South Africa 80 20 0 5 100
North Africa 100 0 0 2 100
I want to convert the results to the bar graph below, produced using Excel ... ( I would actually prefer a stacked bar).



Array


graph hbar and catplot are able to produce a graph of one variable at a time, but how do I get a graph showing the distribution of about 6 variables by the DV (approval of FGC practice)?

Thanks in advance for your assistance.

best wishes - cY