dwt
is an
abbreviation for durbinWatsonTest
.
durbinWatsonTest(model, ...)
dwt(...)
"durbinWatsonTest"(model, max.lag=1, simulate=TRUE, reps=1000, method=c("resample","normal"), alternative=c("two.sided", "positive", "negative"), ...)
"durbinWatsonTest"(model, max.lag=1, ...)
"print"(x, ...)
TRUE
p-values will be estimated by bootstrapping."resample"
to resample from the observed
residuals; "normal"
to sample normally distributed errors with 0 mean
and standard deviation equal to the standard error of the regression.max.lag = 1
; if max.lag > 1
, then alternative
is
taken to be "two.sided"
.durbinWatsonTest
object."durbinWatsonTest"
.
durbinWatsonTest(lm(fconvict ~ tfr + partic + degrees + mconvict, data=Hartnagel))
Run the code above in your browser using DataLab