Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: test with Interaction terms (#) in regression


From   Philip Ender <ender97@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: test with Interaction terms (#) in regression
Date   Tue, 4 Dec 2012 09:48:53 -0800

Rodrigo Badilla <rodrigo.badilla@gmail.com> wrote:

I am runing a regression analisys with Interaction terms:
reg y i.x#c.z
now i d like run a test for the this interaction in differents categories.

------------------------

You have a categorical by continuous interaction which tells you
whether the slope of y on z differs among levels of x.  The easiest
way of looking at this is

. margina x, dydx(z)

You have only one categorical and one continuous variable so I'm not
sure what you mean when you say, "I d like run a test for the this
interaction in differents categories."

-- 
Phil Ender
UCLA Statistical Consulting Group
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index