5
$\begingroup$

There are several packages that can apply the Durbin-Watson test for serial correlation. However, I do not see a package that supports the calculation in the case that once has a GLS weighted regression.

For example, CRAN package lmtest notes in their changelog that they explicitly do not support weighted regressions (yet). Before the recent release, lmtest would not throw an error when passing weighted regressions.

My concern is that the other dwtest packages may also not be explicitly dealing with this scenario.

$\endgroup$

closed as off-topic by mkt, user158565, Michael Chernick, StatsStudent, kjetil b halvorsen Jun 18 at 20:40

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question appears to be off-topic because EITHER it is not about statistics, machine learning, data analysis, data mining, or data visualization, OR it focuses on programming, debugging, or performing routine operations within a statistical computing platform. If the latter, you could try the support links we maintain." – mkt, user158565, Michael Chernick, StatsStudent, kjetil b halvorsen
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    $\begingroup$ I have the same problem too but nobody knows the solution. $\endgroup$ – Eric Oct 3 '17 at 17:04