Hello everyone
In my data I have a dichotomous variable (=value) for three different conditions (which are coded as 0,1,2). Currently, I get a nice picture with:
graph bar, over(value) by(condition, cols(3)) blabel(bar, format(%4.2g)) ytitle(Distribution in percentage) yscale(range(0 100)) ylabel(#5) scheme(s1mono) xsize(5)
However, I also want to show the 95%-CI in the bars. Some research suggest, that I would need to work with a twoway graph and use || rcap but I don't get it to work. I think the syntax with by(condition) is not supported in two-way graphs?
Can somebody help me?
Thanks
Jonas
Related Posts with Showing 95%-CI intervals in bar graph
Create beeswarm and beanplotHi all, I would like to create a beeswarm plot and a beanplot. My dataset contains a numeric variab…
Mata implementation of a fast (k) nearest neighbours lookup algorithmHello everyone I have implemented a kd-tree search algorithm in Mata, that can find the k nearest n…
Manipulating forest plotHello, So I am working on my first meta-analysis in which I am assessing the incidence of traumatic…
Creating a sum variable of the prior 12 monthsDear Users, For a current project I need to create a new variable (call it X), which exist of the su…
Mediation Analysis in Difference-in-Differences (DiD)Hello, I am trying to test mediation using difference-in-differences. My outcome variable is compan…
Subscribe to:
Post Comments (Atom)
0 Response to Showing 95%-CI intervals in bar graph
Post a Comment