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
"Mcenter" function yields mean other than 0Hi there, have repeatedly tried to center a variable at its mean, using the "mcenter" function (htt…
Estimating Multivariate (Multiple Outcomes) Hierarchical ModelsHi all, I have an issue trying to estimate multiple outcomes simultaneously using hierarchical mode…
How to display variable labels in the graph generated by pstest?Hi everyone, I'd like to compare the covariates for the treatment and control group before and afte…
Understanding Stata's post estimation test commandI have a dataset with 25 observations. The variables are y, k and l. I run the following regression …
Interpretation of ritest resultHi, I am running an ritest for a difference-in-difference analysis but I'm unsure about the interpr…
Subscribe to:
Post Comments (Atom)
0 Response to Showing 95%-CI intervals in bar graph
Post a Comment