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
Multiple commands in one line stored in a localI have a problem executing a local with multiple Stata commands separated by ";". If I use this cod…
Monte Carlo SimulationHi all, I want to be able to run a Monte Carlo simulation for an econometrics assignment that I hav…
formula into regressionHi Is there any way to make a regression in this way regress ln(y) indep vars without generate a …
Problems with regressions (regress.ado r(199)Hi, I have run into some problems with making regressions in Stata (version 16). I have been using …
Generate New Variable = Average Price Per Type Per YearI am using Stata version 15.1 and I have 47 variables and 1,010 observations in my dataset. I am doi…
Subscribe to:
Post Comments (Atom)
0 Response to Showing 95%-CI intervals in bar graph
Post a Comment