Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

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

    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.




  • #2
    I found that we can create the inverse-distance spatial weighting matrices for point data. According to the Stata Technical Support, the issue above was fixed in Stata 16. I was using Stata 15.

    Comment

    Working...
    X