normw {GeoXp} | R Documentation |
The function `normw' normalizes a spatial weight matrix
normw(w)
w |
A spatial weight matrix of size $n times n$ |
W_{ij}=frac{W_{ij}}{sum_kW_{ik}}
A matrix of size $n times n$
Aragon Y., Thomas-Agnan C., Ruiz-Gazen A., Robidou L.
Aragon Yves, Perrin Olivier, Ruiz-Gazen Anne, Thomas-Agnan Christine (2008), ``Statistique et Econométrie pour données géoréférencées : modèles et études de cas''
neighbourmap
, moranplotmap
,makeneighborsw
# data auckland data(auckland) x.ext <- auckland$Easting[1:10] y.ext <- auckland$Northing[1:10] #plot(x.ext,y.ext,type='p') #text(x.ext,y.ext,as.character(1:10)) # matrix based on 5 nearest neighbors W<-makeneighborsw(x.ext,y.ext,method="neighbor",m=3) W2<-normw(W)