Dear Stata-listicians,
A colleague of mine run a multiple regression model with various independent variables. He then obtained predicted values from the model and plotted against one of the independent variables. It looks very nice, but I'm trying to figure out what exactly it means/shows.
Sample code:
It seems like a nice graphical depiction of the linear relationship between Y and x1 but with the values being predicted, I guess the scatter is really a nice visualization of R2? Has anyone used a graph like this? what would it be called?
What would be the best way to show y vs x1 'adjusted' for x2-x5? I was thinking avplot?
Thanking you in advance - stay safe in the pandemic!
Nikos
A colleague of mine run a multiple regression model with various independent variables. He then obtained predicted values from the model and plotted against one of the independent variables. It looks very nice, but I'm trying to figure out what exactly it means/shows.
Sample code:
Code:
regress y x1 x2 x3 x4 x5 predict N1 twoway (scatter N1 x1) (lfit N1 x1)
What would be the best way to show y vs x1 'adjusted' for x2-x5? I was thinking avplot?
Thanking you in advance - stay safe in the pandemic!
Nikos
Comment