Announcement

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

  • Spatial Panel: spmatrix create idistance W says "Two or more observations have the same coordinates"

    Dear Statalist,

    I am using Stata 15. and I am working on spatial (SAR) model with panel data. I have difficulties:

    1. I can not linked the shape file --> I have the coordinates (lat and long) so I chose estimation without shapefile.
    2. When I type : spmatrix create idistance W, it says: Two or more observations have the same coordinates. Of course the banks will have exactly same coordinates each time observations. What should I do?
    3. When I remove the bank with some coordinates (that is meaan the data become cross section) it says:
    spxtregress ROA SIZE CAPITAL, fe dvarlag(W)
    (45 observations)
    (45 observations used)
    (data contain 45 panels (places) )
    data contain fewer than 2 time periods
    r(459);

    Any advise is much appreciated. Thank you

  • #2
    Hey citra I'm currently working on a spatial (SAR) model and am running into the same problem's as you've mentioned. Did you find a solution?

    Comment

    Working...
    X