Skip to content

R: Moran's I

2 messages · Theresa Sinicrope Talley, Roger Bivand

#
On Fri, 4 Mar 2005, Theresa Sinicrope Talley wrote:

            
If you need to follow this up further, please consider moving your reply 
to the r-sig-geo list (access from http://www.r-project.org/Rgeo).

In the spdep package, you can define distance based lists of neighbours 
by:

nb0_25 <- dnearneigh(points, d1=0, d2=25)
nb25_50 <- dnearneigh(points, d1=25, d2=50)

then calculate Moran's I (moran.test()) or a chosen Mantel test
(sp.mantel.mc()) using these lists. You are right that sp.correlogram()
is not appropriate in this setting.