Hello,

Is there a way to combine the scatter plot with the fitted line from the regression with an indicator variable?

I am trying to combine something like this:

Code:
twoway scatter var1 var2 || lfit var1 i.var2
where var2 is an indicator variable taking values 1-5. Thank you.