Re: [R-sig-Geo] newbie: Moran's I

2006-11-03 Thread Roger Bivand
On Fri, 3 Nov 2006, Jeffrey Stratford wrote: > Hi. > > Does anyone have an example of estimating Moran's I from a file with > point (not polygon) data? I'm getting close(r) but I still have a few > problems. > > Here's my code so far: > > library(spdep) > ctpoints <- read.csv("c:\\Georgia\\xy.

[R-sig-Geo] newbie: Moran's I

2006-11-03 Thread Jeffrey Stratford
Hi. Does anyone have an example of estimating Moran's I from a file with point (not polygon) data? I'm getting close(r) but I still have a few problems. Here's my code so far: library(spdep) ctpoints <- read.csv("c:\\Georgia\\xy.csv", header=TRUE) # only two columns containing the long-lat data