Take a look at this document
http://geodacenter.asu.edu/system/files/spdepintro.pdf

The standard steps are
require(maptools)
readShapepoly
require(spdep)
poly2nb
nb2listw or nb2mat



Nikhil Kaza
Asst. Professor,
City and Regional Planning
University of North Carolina

nikhil.list@gmail.com



On Apr 28, 2010, at 11:43 PM, Francisco Silva wrote:

> Hi folks,
>
> I am trying to do an spatial econometric model and I need a wheigt  
> matrix.
> I have tried so many times to do such thing in R, but I did not find  
> the way.
> I would like to know, if is possible to do the matrix in R?
> If yes, how does i should do? Please, send the steps because I have
> tried with so many packages and always i get wornings messages.
> If somebody can help me I can send the .shp file to see how this work.
> I know how to read a shape file and even plot maps, but i did not find
> the way to construct an adjascency matrix.
>
> Thanks a lot,
> Francisco Gildemir Ferreira da Silva
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo


	[[alternative HTML version deleted]]

