[R-sig-Geo] how to get the values for corresponding neighbors

2010-05-04 Thread rusers.sh
Hi there, Take the data of columbus(spdep) as an example. Say “i” is one of the polygons, and “j” represents its neighbours. How to get the vlues of “sum(Wij*Xj)”? “Wij” means the weights, which can be get by “nb2listw$weights”. Say “Xj” to be “columbus$PLUMB”. The problem is how to get the

Re: [R-sig-Geo] how to get the values for corresponding neighbors

2010-05-04 Thread Roger Bivand
On Tue, 4 May 2010, rusers.sh wrote: Hi there, Take the data of columbus(spdep) as an example. Say ?i? is one of the polygons, and ?j? represents its neighbours. How to get the vlues of ?sum(Wij*Xj)?? ?Wij? means the weights, which can be get by ?nb2listw$weights?. Say ?Xj? to be