I am trying to create a bar graph that has error bars showing the upper and lower confidence limits. However all my code will not produce the desired error bars. I would also like to include the prevalence percentages in the graph.
This is the code I have that inputs the data
data disabilities;
input disability $ prevalence lower upper;
datalines;
Physical 86.38 84.75 88.01
Cognitive 83.42 81.99 84.85
Both 80.71 78.23 83.19
No 88.26 87.76 88.76;
run;
I then run the following code to produce a bar graph
proc sgplot data=disabilities;
vbarparm category=disability response=prevalence / group=disability fillpattern;
band x=disability lower=lower upper=upper / group=disability transparency=0.5;
xaxis discreteorder=datapart;
run;
I am trying to achieve something similar to this:
Any help is appreciated!!