Bookmark and Share

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]

Re: st: Omitted category interaction variables


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   Re: st: Omitted category interaction variables
Date   Mon, 4 Nov 2013 13:59:57 +0100

On Mon, Nov 4, 2013 at 11:36 AM, Estrella Gomez wrote:
> I'm regressing an equation where three variables are interacted with
> years. I would like to have 2006 as base year; that's it, I want Stata
> to omit this year in all cases. I use the command:
>
> xtreg lpq b2006i.year#c.ldist b2006i.year#i.dhome b2006i.year#i.dlang i.year, fe
>
> but it does not work; Stata omit a different year in each case.

Did you try:
xtreg lpq i.year#c.ldist i.year#i.dhome i.year#i.dlang ib2006.year, fe

Hope this helps,
Maarten

---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

http://www.maartenbuis.nl
---------------------------------
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index