Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: panel-specific autocorrelation with unbalanced panels


From   "Podesta', Federico" <[email protected]>
To   <[email protected]>
Subject   st: RE: panel-specific autocorrelation with unbalanced panels
Date   Mon, 10 Dec 2007 09:07:15 +0100

One way to control for autocorrelation is to run an autoregressive model on the residuals of your model against lagged dependent variable plus all independent variables of your original model and look at the statistical significance of the autoregressive coefficient.  
So, if your model is:
reg y x1 x2
you need to do:
predict resid, resid
reg resid l.resid x1 x2

best regards 

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> Jessica �lschl�ger
> Sent: Friday, December 07, 2007 2:26 PM
> To: [email protected]
> Subject: st: panel-specific autocorrelation with unbalanced panels
> 
> Dear Statalisters,
> 
> I want to test for panel-sepcific autocorrelation in my panel 
> data set.
> Unfortunately xttest1 doesn't work as my data is unbalanced.
> Is there a way to fix this problem in Stata?
> 
> Any comments would be greatly appreciated.
> 
> Jessica
> 
> ----------------------------------------------------------------
> Dipl. oec. Jessica �lschl�ger 
> Forschungsstelle Europ�ische Integration
> Universit�t Hohenheim
> 
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
> 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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