Description Usage Arguments Value Note Author(s) References Examples
View source: R/durbinWatsonTest.R
Computes residual autocorrelations and generalized DurbinWatson
statistics and their bootstrapped pvalues. dwt
is an
abbreviation for durbinWatsonTest
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14  durbinWatsonTest(model, ...)
dwt(...)
## S3 method for class 'lm'
durbinWatsonTest(model, max.lag=1, simulate=TRUE, reps=1000,
method=c("resample","normal"),
alternative=c("two.sided", "positive", "negative"), ...)
## Default S3 method:
durbinWatsonTest(model, max.lag=1, ...)
## S3 method for class 'durbinWatsonTest'
print(x, ...)

model 
a linearmodel object, or a vector of residuals from a linear model. 
max.lag 
maximum lag to which to compute residual autocorrelations and DurbinWatson statistics. 
simulate 
if 
reps 
number of bootstrap replications. 
method 
bootstrap method: 
alternative 
sign of autocorrelation in alternative hypothesis; specify
only if 
... 
arguments to be passed down. 
x 

Returns an object of type "durbinWatsonTest"
.
pvalues are available only from the lm
method.
John Fox [email protected]
Fox, J. (2016) Applied Regression Analysis and Generalized Linear Models, Third Edition. Sage.
1  durbinWatsonTest(lm(fconvict ~ tfr + partic + degrees + mconvict, data=Hartnagel))

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.