Hi folks,
I've seen earlier listings that demonstrate how to use the twoway option
to graph CIs upon a barchart for 1 variable, but it all goes pearshaped
when I try to do the same approach with a second bar/CI combination -
the bars for the first variable are wide (all bars touching) and the
bars for the second variable are superimposed upon these, and are
narrow.
Incidently, the syntax below also fails to show the lower confidence
value on the plot. If I flip the order of the rcap and bar statements in
the syntax below, I get an 'invalid syntax' error for the barwidth
command.
Does anybody have any ideas on how to fix these errors, in V8.0
intercooled?
Cheers
Dan
Lb = lower CI
Ub = upper CI
grp
1 and 2 represent 2 separate time periods
#d;
graph twoway rcap lb1 ub1 groupvar|| bar rate1 groupvar || rcap lb2 ub2
groupvar || bar rate2 groupvar,
xtitle("Group variables")
ytitle("rate")
xlabel(1(1)5) ylabel(0(25)100)
legend(on)
barwidth(0.5)
;
#d cr
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/