I have a linear regression model for which I want to account for an interaction effect.
The basic model is
With the interaction effects:
What I'm looking for, is a way to graph the effect of schanc on the basic model. My question is, whether it is possible to create a graph for the whole model, akin to one looking only at one variable, e.g.:
Attached is the respective output.
I hope this isn't to elementary of a question, I've looked for a similar question via the search function but didn't find anything that answered mine. Thank you.
The basic model is
Code:
regress fp g u i
Code:
regress fp c.g##schanc c.i##schanc c.u##schanc
Code:
regress fp c.u##schanc margins, at(u=(1.3(.1)9.1) schanc=(0 1)) marginsplot, recast(line) addplot(scatter fp u)
I hope this isn't to elementary of a question, I've looked for a similar question via the search function but didn't find anything that answered mine. Thank you.
Comment