Announcement

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

  • How would I create a 95% CI on a scatter plot?

    This might be very simple, but how would I show a 95% confidence interval on a scatter plot which parallels my regression line? Thank you.


    An example of what I am looking for is shown below.



  • #2
    Dear Dylan,

    You are looking for a Twoway linear prediction plots with CIs, a Stata standard graph.
    So, typing:
    Code:
    h lfitci

    gives you access to the online help file and there you can use the link to the manual as well.

    It is explained here with this example:
    Code:
    use https://stats.idre.ucla.edu/stat/stata/notes/hsb2
    graph twoway (lfitci write read) (scatter write read)
    http://publicationslist.org/eric.melse

    Comment

    Working...
    X