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
error message in xtglsWhen I ran the xtgls regression: Code: xtgls dep var, covariate 1 covariate 2 .....covariate n, cor…
Replacing variables with loopsreplace c_q33_1=.a if c_q29_1 ==.a replace c_q33_2=.a if c_q29_2 ==.a replace c_q33_3=.a if c_q29_3 …
xtset with unbalanced nested panel dataHello I am trying to perform a fixed effect analysis on student achievement gain scores. My data is …
Lagged treatment effect in DD model with multiple treatment periodsDear All, I have a question about how to include lagged treatment effect in a Difference-in-Differen…
loop questionHi all, I am new on Stata so my knowledge is limited. I have a variable that indicates whether the …
Subscribe to:
Post Comments (Atom)
0 Response to Latitude and Longitude to perform geonear and the case of 90 to -90
Post a Comment