I have some data where I am trying to use -graph bar- to make some figures. Using this data and code:
I can get everything right except for overlaying the error bars.
I looked at this website: https://stats.oarc.ucla.edu/stata/fa...th-error-bars/ but this seems both incredibly convoluted and also not possible anyway in my case, because I only have the data shown here (though with more observations), and not the underlying data--I was just asked to take this and make said figure. Does anyone have any alternative solutions?
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str2 question str3 subscribe float(margin se) "q1" "yes" .23 .05 "q1" "no" .14 .03 "q2" "yes" .45 .1 "q2" "no" .13 .1 "q3" "yes" .34 .07 "q3" "no" .3 .04 end
Code:
graph bar margin, over(subscribe) over(question)
I looked at this website: https://stats.oarc.ucla.edu/stata/fa...th-error-bars/ but this seems both incredibly convoluted and also not possible anyway in my case, because I only have the data shown here (though with more observations), and not the underlying data--I was just asked to take this and make said figure. Does anyone have any alternative solutions?
Comment