Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is it possible to add error bars on bar graphs that include by() commands and multiple variables?

    Hi everyone,

    Thanks in advance for the help. I am currently using the following code to generate a bar graph:

    graph bar Deceive1_NoSign Deceive1_Sign, over(Treatment, relabel(1 "Weak Signal" 2 "Moderate Signal" 3 "Strong Signal")) scheme(s2color) title(Accountant's Decision to Dishonestly Report in Task 1 by Treatment, size(medium)) ytitle("Dishonest Report", size(small)) scale(0.8) name(graph2, replace) blabel(bar) yvar(relabel(1 "Baseline" 2 "Signalling")) bar(1, color(dkgreen)) bar(2, color(dkgreen*0.5)) bargap(10)

    The output looks like this:

    Click image for larger version

Name:	Screenshot am 11-04 um 1420 im Code@2x.png
Views:	1
Size:	53.9 KB
ID:	1749625

    I am wanting to add error bars to this graph to show the standard error. I thought about using statsby/serrbar, however this doesn't seem to allow having two variables within the bar graph. Does anyone know of a solution here?
Working...
X