Stata Interaction Plot. The value for the female by socst interaction is 2047 which is the difference in slope between the male and female group i e the slope for the female group would be about 6248 2047 4201. Stata s margins and marginsplot commands are powerful tools for creating graphs for complex models including those with interactions.
Stata knows to plot hours on the x axis and separate lines by effort because of the order by which we specified the at option. Graphics overview of twoway plots stata learning modules this module shows examples of the different kinds of graphs that can be created with the graph twoway command. Regress t trt c wccregress t trt c wcc.
Keep in mind that it s a contour plot and not the pseudo 3d plot like you show.
Keep in mind that it s a contour plot and not the pseudo 3d plot like you show. Actually all of the matrix stuff that i show there in that post was needed only if you want to create a contour plot. We can do this in marginsplot using the addplot option. This is illustrated by showing the command and the resulting graph.