distCutOff: distance cutoff. Default = the maximal value from the distance matrix.
powr: power (positive exponent), default 2
mevn: logical, default FALSE. If TRUE, max-eigenvalue normalization is performed.
Returns
W: spatial weights matrix (Default, not normalized)
Details
W is an nxn matrix with elements wij, i,j=1,...n, where wij=(1−(Ddij)p)p, if 0<=dij<D and wij=0, if dij>D or i=j. D is the cut-off distance point (maximum radius of influence), dij is the distance between spatial units i and j, and p is the power value (e.g. p = 2, 3, 4,...).
Examples
data(gN3dist)##distance in metersW1 <- DDistMat(distMat = gN3dist, distCutOff =300000, powr =3)##distance cutoff in metersdist2 <- gN3dist/1000##in kmW2 <- DDistMat(distMat = dist2,300,3)##distance cutoff in kilometers