[R-sig-Geo] Request about creating spatial weight matrix

Roger Bivand Roger.Bivand at nhh.no
Wed Jun 3 23:34:05 CEST 2015


On Wed, 3 Jun 2015, Hermann Pythagore DONFOUET wrote:

> Dear R experts,
>
> I'm contacting about creating a spatial weight matrix in R software 
> which takes the value one if households belong to the same village and 
> zero otherwise. I do have six villages and 369 households scattered in 
> those villages. The intuition is that households belonging to the same 
> village will behave the same. Thus, my spatial weight matrix of 369x369 
> will be like a social network matrix taking the value one if households 
> belong to the same village and otherwise. I also want to standardise 
> this spatial weight matrix.

?spdep::nb2blocknb

Roger

>
>
>
> Regards
>
> Hermann , post-doc fellow in INRA, France
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

-- 
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 91 00
e-mail: Roger.Bivand at nhh.no



More information about the R-sig-Geo mailing list