21 Jun 2012 00:17
Spatial Weight Matrix
Saima Bashir <saimabashir11 <at> yahoo.com>
2012-06-20 22:17:49 GMT
2012-06-20 22:17:49 GMT
I want to built Spatial Weight Matrix for West Virginia only. I have downloaded shape file from US census
wesite then imported into R. I was doing following steps:
i. read.shape("C:\\Users\\sbashir\\Desktop\\R\\fe_2007_54.shp")
ii. Creat neighbors list
Wnbq <- cell2nb(6, 6, type = "queen")
summary(Wnbq)
iii. Spatial Weights
nb2listw(neighbours = Wnbr, glist=NULL, style="W", zero.policy=NULL)
I am confused about next step. I will really appreciate if someone can help me.
Thanks
Saima
[[alternative HTML version deleted]]
RSS Feed