Stata Interaction Plot. Handling interactions in statahandling interactions in stata especially with continuous predi tdictors patrick royston willi sauerbrei german stata users meeting g berlin 1 june 2012. It shows how to create a contour plot for an interaction.
Stata s margins and marginsplot commands are powerful tools for creating graphs for complex models including those with interactions. We can do this in marginsplot using the addplot option. Regress t trt c wccregress t trt c wcc.
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.
We can also get the slopes for the two groups using the margins command. Now we can plot the simple slopes using the marginsplot command introduced in stata 12. Keep in mind that it s a contour plot and not the pseudo 3d plot like you show. Graphs often can illustrate the results of a model more effectively than a written interpretation especially for a nontechnical audience.
