Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: interaction graph

From   Nick Cox <>
Subject   Re: st: interaction graph
Date   Wed, 23 Feb 2011 09:47:39 +0000

I don't have a specific suggestion.

Your model produces a prediction surface and although there are some
user-written commands for 3-D graphics plotting the entire surface is
a problem for which you are better off outside Stata.

On the other hand, generating predictions for a few fixed values of
your moderator might produce an adequate graph.

-interact- is not an official command. It follows that you should
explain where it comes from, as long and often requested on this list.


On Wed, Feb 23, 2011 at 9:34 AM, Fabio Zona <> wrote:

> time ago you suggested to use
> regplot x, separate(dummy)
> to graph interaction effect between a continuous variable and a dummy variable.
> However, what command should I use if I have
> a) a quadratic form (i.e.,   x  +  x_square)
> b) the moderator is a continous variable (not a dummy), and it is multiplied by both x  and  x-square ??
> The stata command "interact" works only with linear (i.e. non quadratic) models

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index