[R] Exact distribution, dwtest

Achim Zeileis zeileis at ci.tuwien.ac.at
Sun Nov 11 17:49:01 CET 2001


John Janmaat wrote:
> 
> Hello All,
> 
> Some time ago I enquired about the Durbin-Watson statistic.  The package
> 'lmtest' calculates the statistic, but reports NA on the P value.  Is
> there a package in R that calculates the exact distribution of the 'd'
> statistic?

In the package "car" there is a version of the test in the function
durbin.watson(), that computes the p-value by bootstrapping.
In the next version of "lmtest" (hopefully out on CRAN by the end of the
month) dwtest() will have p-values as well - not based on bootstrapping,
but on the "gradsol" or "pan" algorithm. If you like, I can send you a
snapshot of the forthcoming "lmtest" package.
Z


> Thanks,
> 
> John.
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list