To perform geo near, we require latitude and longitude. For this do we use the coordinates information from the shapefile or create the centroids separately using the centroid command.? Over here I have used the latitudes and longitudes by using the centroid command.
Second, I am trying to perform geo near. I want to look at the border districts' effect (spillover effect) i.e I want to find the non-treated neighboring districts for my treated districts. However, the treatment of the district varies over time. In other words, districts come in for treatment and go out over time. Now, I have got two datasets with the centroid values - one includes only treated districts and the other non-treated districts. After which I perform the geo near using the following codes with 2000 km?
geonear district x_stub y_stub using "Non- treated districts with centroids.dta", n(district1 x_stub1 y_stub1) ign long within(2000) near(2)
However, I am getting the following syntax.
nbor latitude var x_stub1 must be between -90 and 90
r(198);
Can anybody please help with these concerns?
Related Posts with Latitude and Longitude to perform geonear and the case of 90 to -90
Wingdings characters in graphI want to use a single Wingdings character in a graph, specifically I want the telephone icon as an …
How do I incorporate 'or' in to a stata command for generating a new variableHi Statalist, I am trying to create a new variable (choice) which notes whether a graduate attended…
Plot only one baselevel using coefplot for multiple equationsI would like to plot only one baselevel using coefplot for two equations. The code I am using is coe…
nbvar downloadHello, I have Stata11 and I'm trying to run the nbvargr command. I have been able to download this s…
Reshape matched case control data from wide to long formatHello, I have a case control study with 59 cases matched 1:3 with controls on birth year. The match…
Subscribe to:
Post Comments (Atom)
0 Response to Latitude and Longitude to perform geonear and the case of 90 to -90
Post a Comment