Skip to content
Prev 32934 / 398503 Next

Error Using dwtest

On Wednesday 04 June 2003 16:44, rwatkins at cornerstonelp.com wrote:

            
It means that the cross product X'X of your model matrix X, which is 
computed by

  X <- model.matrix(formula, data = data)

is exactly singular and thus cannot be inverted. In such a case 
dwtest() cannot compute the p value. You might want to try 
durbin.watson() in the package car which uses a different approach for 
computing the p value.
Best,
Z