Announcement

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

  • Identify case in GraphEditor ??

    I'm looking at the trends of my data and want to identify specific cases from the graph that are outliers. My data has 55 cases. Since Stata only shows 15 types of lines per graph when I use xtline and overlay I get the figure attached. The same colors and patterns are used multiple times. I want to identify outliers but not sure how to do so. Any suggestions?
    Attached Files

  • #2
    I don't think you can do this in the Graph Editor, but you could add an -addplot()- option to identify the lines. For example:
    Code:
    clear
    set seed 1342380
    set obs 10
    gen id = _n
    expand 10
    bys id: gen t =_n
    bys id: gen x = runiform()
    xtset id t
    xtline x ,overlay addplot(scatter x t if t ==5 & x > .8, mlabel(id))

    Comment


    • #3
      Hello Scott, Thank you for your helpful suggestion.

      I feel like I should be adding my own variables in the code you provided but not quite sure because when I ran it I got the following attachment. Still a little unclear. Sorry. ​​​​

      Attached Files

      Comment

      Working...
      X