Skip to content
Prev 58397 / 398502 Next

Problems with Durbin Watson and Partial Residual Plots

Dear Cal,

The functions that you mention are in the car package.

The problems that you've encountered seem very odd to me. For example, if
you take a look at durbin.watson.lm(), you'll see that the code producing
the errors is quite straight-forward; it just extracts residuals from the
model and checks for NAs:

    residuals <- residuals(model)
    if (any(is.na(residuals))) 
        stop("residuals include missing values") 

Likewise, what's going on inside of cr.plot.lm() is also pretty simple.

Can you send the data set on which this regression was based?

John

--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox 
--------------------------------