# Graphical Multiple Linear Regression in Stata

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?

• Do you mean scatter y x || lfit y x ? – martin Oct 24 '13 at 8:32
• 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. – Scortchi Oct 24 '13 at 8:33
• @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? – Nick Cox Oct 24 '13 at 8:36
• @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? – Peter Flom Oct 24 '13 at 10:56
• Could be a duplicate of this then. – Scortchi Oct 24 '13 at 12:15