Announcement

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

  • can i do multiple ciplots on one graph

    Hi I would like to plot the mean of Preopeq5d and postop eq5d by remoteness categorical variable

    i can plot the mean of one variable using

    -ciplot preopeq5d-

    Can I add on one graph the mean preopeq5d, mean postopeq5d30days in one plot using ciplot?

    Code:
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input byte remoteness_index_see_http float(EQ5Dindex_preop EQ5Dindex_postop30d)
    1 .704 .
    3 .758 .
    2 .808 .
    1 .829 .
    1 .892 .
    2 .801 .
    2 .879 .
    1 .758 .
    2 .808 .
    1 .808 .
    end
    label values remoteness_index_see_http r14
    label def r14 1 "0-40mins", modify
    label def r14 2 "40mins - 1hr", modify
    label def r14 3 "1-2hr", modify

  • #2
    ciplot is from SSC, as you are asked to explain (FAQ Advice #12). The help carries a 2011 advisory that you're better off with other commands.

    Nevertheless ciplot can show what I think you want.

    Your text mentions postopeq5d30days while your data example mentions EQ5Dindex_postop30d, but all the values are missing. So, I can't use your data example to illustrate. However, the 3rd, 5th, 7th and 9th commands given as examples in the help for ciplot all show ways of getting confidence intervals for means of two variables.

    https://www.statalist.org/forums/for...-interval-sets explains a more flexible command, but there are many other ways to do it.





    Comment

    Working...
    X