Home  /  Resources & Support  /  FAQs  /  Stata Graphs  /  Scatterplot with overlaid linear prediction plot by variable

Scatterplot with overlaid linear prediction plot by variable

Commands to reproduce PDF doc entries
webuse auto
twoway scatter mpg weight || lfit mpg weight ||, by(foreign, total row(1) style(altleg))
[G-2] graph twoway scatter
[G-2] graph twoway lfit
[G-3] by_option

Regression fit plots
     
     
     
     
     
Main page          Next group