distCutOff: cutoff distance. Default = the maximal value from the distance matrix.
powr: power (positive exponent), default = 1
mevn: logical, default FALSE. If TRUE, max-eigenvalue normalization is performed.
Returns
W: weights matrix (Default, not normalized)
Details
W is an nxn matrix with elements wij, i,j=1,..n, where wij=1/dijγ, if 0<=dij<D and wij=0, if dij>D or i=j. D is the distance cutoff point (maximum radius of influence), dij is the distance between spatial units i and j, and γ is the value for the exponent (e.g. γ = 1, 2, 3, 4,...).
Examples
## distance between centroids of NUTS3 regions in Germany (in meters)data(gN3dist, package ="SDPDmod")## inverse distance matrix with cutoff 100000 metersW1 <- InvDistMat(distMat = gN3dist, distCutOff =100000)dist2 <- gN3dist/1000##distance in km## normalized distance matrix with cutoff 100kmW2 <- InvDistMat(distMat = dist2, distCutOff=100, powr =2, mevn =TRUE)