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]]

