Skip to content
Prev 189331 / 398500 Next

Durbin-Watson

On Fri, 7 Aug 2009, Hardi wrote:

            
Yes. The autocorrelation is rather low, though, so it might be hard to see 
in visualizations that you mention below.
I'm not sure that the Durbin-Watson test is appropriate at all for your 
data. This seems to be longitudinal or panel data, right? The standard 
Durbin-Watson test is for time series regressions.

(Snippiness alert: This might have become more clear if a textbook would 
have been consulted more thoroughly as suggested in my previous 
mail...even though other respondents seem to feel that you do not need to 
understand the test, or read its manual, to apply it.)
Hard to say from your description, but it seems that one of the following 
might help: using some sandwich covariances (see package "sandwich") after 
a linear regression with lm() or using GEE (see package "geepack") with a 
suitable dependence structure.

hth,
Z