Hello,

Can we create inverse-distance spatial weighting matrices for point data?

I can create inverse-distance spatial weighting matrices with a polygon shapefile (poly.shp) by using the following commands.

spshape2dta poly.shp
use poly, clear
spmatrix create idistance Wid, normalize(row)

However, I cannot create spatial weighting matrices with a point shapefile (point.shp); for example,

spshape2dta point.shp
use point, clear
spmatrix create idistance Wid, normalize(row)
* Then, I get "coordinate variable _CX has missing values" error.