nb
neighbourhood list.EBlocal(ri, ni, nb, zero.policy = NULL, spChk = NULL, geoda=FALSE)
nb
object of neighbour relationshipsget.spChkOption()
parameters
attribute list with components:EBest
, probmap
example(auckland)
res <- EBlocal(auckland$M77_85, 9*auckland$Und5_81, auckland.nb)
brks <- c(-Inf,2,2.5,3,3.5,Inf)
cols <- grey(6:2/7)
plot(auckland, col=cols[findInterval(res$est*1000, brks, all.inside=TRUE)])
legend("bottomleft", fill=cols, legend=leglabs(brks), bty="n")
title(main="Local moment estimator of infant mortality per 1000 per year")
Run the code above in your browser using DataLab