Statalist


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

Re: st: dummy variables in xtreg


From   Clive Nicholas <clivelists@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: dummy variables in xtreg
Date   Fri, 31 Jul 2009 15:20:23 +0100

Marco Buur wrote:

> I am running xtreg, re model with dummy (year) variables
>
> xtreg a b c y1-y8, re  cluster(Country)
>
> 2 dummy variables y2 and y8 are dropped due to collinearity. Is there
> a way to fix this?

An alternative would be to demean your explanatory variables by year
and run -xtreg- with those variables, but without the year dummies.
However, this runs the large risk of purging some of the variation
from your data which the model would seek to explain.

> Can I force Stata  to include all  dummy variables  y1-y8 in xtreg, re?

I don't believe so, certainly not in version 9.2, which is the one I
have. See -help xtreg- in your version to see what it says.

-- 
Clive Nicholas

[Please DO NOT mail me personally here, but at
<clivenicholas@hotmail.com>. Please respond to contributions I make in
a list thread here. Thanks!]

"My colleagues in the social sciences talk a great deal about
methodology. I prefer to call it style." -- Freeman J. Dyson.

*
*   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/



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