Good morning,
I am trying to plot the local autocorrelation coefficient (local Moran's I) using the command spatlsa from the package sg162 from http://www.stata.com/stb/stb60 by Prof. Pisani. I looked at the help file and I came with the following code
where W is the name of the weight matrix, nuts3 is the variable containg the clusters of interest, data_coord is the file with the polygons coordinates and x_center, y_center are the coordinates in terms of latitude and longitude of the centroid of the polygons.
The issue is that I get an error telling me that x_center and y_center do not exist when I am more than sure that they are contained in the dataset data_coord I put in the map option. Is this a problem of coding or could it be related to the nature of data?
I am trying to plot the local autocorrelation coefficient (local Moran's I) using the command spatlsa from the package sg162 from http://www.stata.com/stb/stb60 by Prof. Pisani. I looked at the help file and I came with the following code
Code:
spatlsa Leave_Share, weights(W) id(nuts3) moran map(data_coord) xcoord(x_center) ycoord(y_center)
The issue is that I get an error telling me that x_center and y_center do not exist when I am more than sure that they are contained in the dataset data_coord I put in the map option. Is this a problem of coding or could it be related to the nature of data?
Comment