Announcement

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

  • Getting either error bars with "twoway" or connecting "serrbar" graphs

    Hi

    I have three variables in my dataset that I have created separately from my original dataset:
    - mean (represents proportion with the outcome)
    - se (standard error of the mean)
    - year (explantory variable)

    By using twoway, I can get a line graph, but nowhere online or in the menus can I see a means of adding error bars to this
    "twoway (connected mean year)"

    When I use serrbar, I get an error bar for each variable, but no connection between the points appears despite using the "connect(l)" option
    "serrbar mean se year, scale (1.96) connect(l)"

    Is there a means of getting a combination of the two, either in this derived dataset or in my original one?

    Many thanks again.




  • #2
    The addplot() option is documented.

    Code:
    serrbar mean se year, scale(1.96) addplot(line mean year)

    Comment


    • #3
      That's perfect. Thanks so much

      Comment

      Working...
      X