Announcement

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

  • Confidence intervals on graph bars

    Hi all,

    I am using the statplot command with the following code:

    statplot var1 var2 var3 var4 var5 var6 , over(sex, label(labsize(vsmall))) ytitle(percent, size(vsmall)) yla(0 0.1 "10" 0.2 "20" 0.3 "30", ang(h)) bar(1, bfcolor(green*0.4)) varopts(label(labsize(vsmall))) ysize(7)

    I am pretty satisfied with the result but I still want to attach the 95%CI to each one of the bars of the 6 binary variables. The dataset consists of 200 observations (patients) and each one of the variables is a proportion of a feature of the whole sample. Do you have any ideas?

    Thank you!

  • #2
    statplot is from SSC, as you are asked to explain (FAQ Advice #12). It's good that you find it helpful, but it's a dead end so far as your desired plots are concerned. That's because it is a wrapper for graph hbar or graph bar or graph dot.

    To get a detonator/dynamite/plunger plot you would need something more like twoway bar and twoway rcap.

    Comment


    • #3

      Thanks for your reply Nick. I think I've managed to get a satisfactory graph so far with twoway line and twoway rcap. I think it creates two different graphs and then combines them, right? Thank you for your time

      Comment


      • #4
        There are many examples here on Statalist of technique. Detonator, dynamite and plunger are search terms beyond the obvious.

        Comment

        Working...
        X