normw {GeoXp}R Documentation

Normalize a spatial weight matrix

Description

The function normw() normalizes a spatial weight matrix

Usage

normw(w)

Arguments

w A spatial weight matrix of size n x n

Details

W_ij=frac(W_(ij))(sum_kW_(ik))

Value

A matrix of size n x n

Author(s)

Aragon Y., Thomas-Agnan C., Ruiz-Gazen A., Robidou L.

References

Aragon Yves, Perrin Olivier, Ruiz-Gazen Anne, Thomas-Agnan Christine (2009), Statistique et Econométrie pour données géoréférencées : modèles et études de cas

See Also

neighbourmap, moranplotmap,makeneighborsw

Examples

# 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)

[Package GeoXp version 1.4 Index]