Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Interaction terms in dynamic models
From
Hewan Belay <[email protected]>
To
Stata List <[email protected]>
Subject
st: Interaction terms in dynamic models
Date
Tue, 10 May 2011 09:07:10 -0700 (PDT)
Dear statalist,
I am wondering about the following: I am able to include interaction terms with no problem in a range of estimation models, but not in dynamic ones. Is there a reason why this is not working, or do I need to do something differently? Here are some toy examples of what I mean:
All of the following regression commands run just fine:
webuse abdata
regress wage c.emp#c.cap
xtreg wage c.emp#c.cap
xtreg wage c.emp#c.cap, fe
xtgls wage c.emp#c.cap
xttobit wage c.emp#c.cap
But the following don't run:
xtabond wage c.emp#c.cap
xtdpd L(0/1).wage c.emp#c.cap, dgmmiv(wage) div(c.emp#c.cap)
In the above two, I get the error message "cemp#c: operator invalid". For some reason xtabond and xtdpd don't seem to recognise the interaction specification c.varname1#c.varname2.
Thanks in advance on any thoughts on what may be going on here, and how to deal with the problem.
Hewan
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/