lm.morantest.sad(model, listw, zero.policy=FALSE, alternative="greater",
spChk=NULL, tol=.Machine$double.eps^0.5, maxiter=1000)
print.moransad(x, ...)
summary.moransad(object, ...)
print.summary.moransad(x, ...)
lm
returned by lm
; weights
and offsets should not be usedlistw
object created for example by nb2listw
get.spChkOption()
uniroot
uniroot
moransad
with the following components:uniroot
lm.morantest
data(eire)
e.lm <- lm(OWNCONS ~ ROADACC, data=eire.df)
lm.morantest(e.lm, nb2listw(eire.nb))
lm.morantest.sad(e.lm, nb2listw(eire.nb))
summary(lm.morantest.sad(e.lm, nb2listw(eire.nb)))
Run the code above in your browser using DataLab