Consider this standard linear regression model:

$Y = \beta_0+\beta_1X_1+\cdots+\beta_pX_p+\epsilon$

I've loaded such a dataset into Stata 12.0, so I have some variables $y,x_1,x_2,\dots,x_p$. How do I produce a plot, like I would with . scatter y x for a simple linear regression model?

  • $\begingroup$ Do you mean scatter y x || lfit y x ? $\endgroup$ – martin Oct 24 '13 at 8:32
  • 1
    $\begingroup$ This question appears to be off-topic because it is only about how to do something in Stata, not about Statistics. If there's an underlying statistical matter you want help on, please edit the post to make it clear. $\endgroup$ – Scortchi Oct 24 '13 at 8:33
  • 1
    $\begingroup$ @Scortchi and voters on closure: I think there is a statistical question deep inside this as well as a Stata question, so I'd suggest keeping it open. The focus should be: exactly what goes on what axis, and is this a single or a multiple plot? $\endgroup$ – Nick Cox Oct 24 '13 at 8:36
  • $\begingroup$ @NickCox et al. Let's ask Newb. Newb, do you know what you want to graph and just not know how to do it in Stata? Or do you want to know about good graphics for this sort of situation, and then you can figure out the Stata code on your own? Or both? $\endgroup$ – Peter Flom Oct 24 '13 at 10:56
  • 2
    $\begingroup$ Could be a duplicate of this then. $\endgroup$ – Scortchi Oct 24 '13 at 12:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.