Announcement

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

  • adding exact values of CI's to plot (using rcap)

    I’ve created the below graph (Note: data is made-up)


    Code:
    twoway (rcap lower upper row, horizontal msize(medium)) (scatter row percentage, mlabel(percentage) mlabposition(12) mlabsize(small)), legend(off) ylabel(1 "Group A" 2 "Group B" 3 "Group C", angle(0) noticks) xtitle("Percentage") ytitle("") aspect(.5)
    Click image for larger version

Name:	Graph.png
Views:	1
Size:	35.3 KB
ID:	1655484


    I’d like to put the exact values of the CIs on the plot. I was able to get the point estimate on the plot by adding mlabel(percentage).

    Any thoughts?

    Thank you.




  • #2
    Try adding:

    Code:
    (scatter row lower, mlabel(lower) mcolor(none) mlabposition(12) mlabcolor(navy) mlabsize(small))
    and the same for "upper". Next time present the data example as well using dataex.

    Comment


    • #3
      That worked - thank you!!

      Comment

      Working...
      X