Im using a regression model with 3 variables (a numerical dependent variable, a numerical independent variable and a categoriacal independent variable).
lets say: regress X Y i.Z
Is there a way to include the 3 variables in one graph ?
What i want is basically a linear prediction graph that, instead of 1 line graphing the relationship between variables X and Y, includes 1 line for each category of Z.
Im attaching a drawing of what i need. (The drawing has a scatter plot but i dont necessarily need it.
Thanks in advanced.
lets say: regress X Y i.Z
Is there a way to include the 3 variables in one graph ?
What i want is basically a linear prediction graph that, instead of 1 line graphing the relationship between variables X and Y, includes 1 line for each category of Z.
Im attaching a drawing of what i need. (The drawing has a scatter plot but i dont necessarily need it.
Thanks in advanced.
Comment