[R-sig-Geo] How to do residual & regression deletion diagnostics on spautolm/sarlm objects?

Guido Schulz gosz at gmx.de
Mon Apr 20 14:05:41 CEST 2015


In stats there are nice functions to carry out residual & regression
deletion diagnostics on lm or glm objects, such as:

stats::plot.lm
and
stats::influence.measures

Example:
----------
install.packages("graphics");library(graphics)
lm.object <- lm(sr ~ pop75 + dpi + ddpi, data = LifeCycleSavings)
plot(lm.object)
influence.measures(lm.object)
----------

I would like to do these (or similar) diagnostics on a spdep::spautolm
(type "SAR") object, but neither plot.lm nor influence.measures accepts
spdep::spautolm/sarlm objects.

Can you recommend a workaround?
Or are these diagnostics simply not appropriate for SAR type regressions?



More information about the R-sig-Geo mailing list