Announcement

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

  • Need help with scatter graph

    I am undergraduate student trying to learn STATA. I have compiled this graph with the code:

    graph twoway (scatter price date)


    The result is there, just wondering how I can get a line of best fit through each variable?
    Please let me know and sorry its so basic.
    Attached Files

  • #2
    On the face of it you have at least two different groups of values there so that fitting a single line would make no sense. So you need to tell us how the grouping arises so that sensible code can be suggested.

    Comment

    Working...
    X