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
Adding new rows for each group setHello all, I am working a matched case-control study (matched on age and sex). In the below example…
Age, gender and BMI matched controls in STATAHello everyone, I am working on a study with 471 Normal Glucose Tolerance(non-diabetic) and 153 (Ty…
cumulative distribution function vs probability density functionHi everyone, According to my lecture slides you can compute the Marginal Effects for continuous X f…
Variables do not uniquely identify the observations in the master dataHi, I am trying to merge individual and household data. In the user manual, it has been mentioned t…
Tabout and missing dataDear all, I often use tabout to describe my data but I am now struggling with the presentation of mi…
Subscribe to:
Post Comments (Atom)
0 Response to Latitude and Longitude to perform geonear and the case of 90 to -90
Post a Comment