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
ppmlhdfe, keepsingletonDear statalist members, I am using ppmlhdfe to investigate the bilateral trade flow and have a ques…
Explanation of Dependent log variableI'm using a vector of log dependent variables due to a change in the main variable of interest ( whi…
Drop countries which do not have at least three firms in each yearHi all, I have a cross-country panel dataset with multiple countries and firms over the sample peri…
offset variable in panel data GEEHi, stata users I want some explanation about "offset variable" My dataset below is a unbalanced pa…
Svy Command and incorrect coefficientHi, I am using two waves of DHS survey and I need to run a weighted regression of education on age a…
Subscribe to:
Post Comments (Atom)
0 Response to Latitude and Longitude to perform geonear and the case of 90 to -90
Post a Comment