Announcement

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

  • Mapping Moran I

    Hello, everyone!
    Maybe anyone could help me, I have troubles mapping local Moran I.

    Code:
    The error says that
    xsize() must be between .5 and 20.0
    invalid syntax
    r(198)
    My code is following

    Code:
    drop if id==47
    drop if id==11
    spatwmat using "ccounty.txt", name(Ws) standardize eigenval(E)
    spatlsa wage, w(Ws) moran graph(moran) map(countyxy.dta) x(longitude) y(latitude)
    
    *** Test for Local spatial autocorrelation (Moran's I) ***
    spatlsa wage, w(Ws) moran graph(moran) map(countyxy.dta) x(longitude) y(latitude)
    Attached are data that I use: coordinates, the main file, and weight matrix.
    Attached Files
    Last edited by Evgeniya Mitrokhina; 17 Feb 2017, 08:46.

  • #2
    If your scatterplot is OK, given by


    Code:
    spatlsa wage, weights(Ws) moran graph(moran) symbol(n)

    then the problem lies in the geographical area data file (countyxy.dta). You should make sure that your latitude and longitude coordinates are within the coordinates of the polygon that makes up your geographical area. If you encounter problems, attach the file countyxy.dta and I will have a look.

    Comment

    Working...
    X