Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: serial correlation in fixed effect model

From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   Re: st: serial correlation in fixed effect model
Date   Wed, 4 Aug 2004 20:02:16 +0100 (BST)

Christopher Gigoriou wrote:

> I have run the drukker test implemented on stata to detect serial
> correlation in fixed effect panel data told me I have some
> serial correlation...then, to correct it, am I allowed to use the command
> xtgls then p(h) and c(a)??(since my model is specified with a FE)

You don't necessarily _have_ to use FGLS. You could, for instance, try
David Roodman's user-written -newey2-, downloadable from SSC. With this
routine, you can also fit a fixed-effects model _and_ obtain OLS parameter
estimates corrected for both autocorrelation and heteroscedasticity. For

. xi: newey2 y x1 x2 i.fe xk, lag(#) force

I was reminded about all this off-list by another Statalist member last
week. So long as you _don't_ have a lagged dependent variable, this works
just as well as -areg- or -xtreg, fe-.

CLIVE NICHOLAS        |t: 0(044)191 222 5969
Politics              |e: [email protected]
Newcastle University  |
*   For searches and help try:

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