Hi all,
My data:
I would like to analyse a reform that has happened in South Carolina using spatial regression discontinuity. South Carolina shares a border with Georgia, so I would like to generate a running variable being the distance of each entity to the Georgia-South Carolina border. Distances within Georgia should receive a negative value.
The ZIP code, latitude and longitude you see are the ZIP codes, latitudes and longitudes of units as they are geographically positioned.
I would like to conduct a spatial RD specification resembling that of this paper: https://www.iza.org/publications/dp/...road-accidents
My problem is that of identifying the coordinates of the border points that are the closest to each unit, "as the crow flies". Once this is done, it would then be a case of using Picard's geodist package in order to compute distance, and multiplying distances in Georgia by -1 I presume.
I have taken a look at this thread: https://www.statalist.org/forums/for...nt-to-a-border, however Robert Picard already starts with a grid file for Mexico. In which case, I guess my question could be: would there be an equivalent grid file for South Eastern USA that I could use?
I was also informed that obtaining coordinates is possible using QGIS.
Bottom line is, any help with identifying coordinates on a US state border would be greatly appreciated
. Please let me know if I need to furnish any additional information.
My data:
Code:
input str2 progState long ZIP double(LAT LNG) "GA" 30523 34.716543 -83.552878 "GA" 30274 33.554561 -84.399687 "GA" 30274 33.554561 -84.399687 "GA" 30274 33.554561 -84.399687 "GA" 30274 33.554561 -84.399687 "GA" 30274 33.554561 -84.399687 "GA" 30274 33.554561 -84.399687 "GA" 30274 33.554561 -84.399687 "GA" 31532 31.72207 -82.758822 "SC" 29102 33.641983 -80.188481 "SC" 29169 33.997527 -81.097406 "SC" 29169 33.997527 -81.097406 "SC" 29169 33.997527 -81.097406 "SC" 29169 33.997527 -81.097406 "SC" 29169 33.997527 -81.097406 "SC" 29169 33.997527 -81.097406 "SC" 29169 33.997527 -81.097406 "SC" 29169 33.997527 -81.097406
I would like to analyse a reform that has happened in South Carolina using spatial regression discontinuity. South Carolina shares a border with Georgia, so I would like to generate a running variable being the distance of each entity to the Georgia-South Carolina border. Distances within Georgia should receive a negative value.
The ZIP code, latitude and longitude you see are the ZIP codes, latitudes and longitudes of units as they are geographically positioned.
I would like to conduct a spatial RD specification resembling that of this paper: https://www.iza.org/publications/dp/...road-accidents
My problem is that of identifying the coordinates of the border points that are the closest to each unit, "as the crow flies". Once this is done, it would then be a case of using Picard's geodist package in order to compute distance, and multiplying distances in Georgia by -1 I presume.
I have taken a look at this thread: https://www.statalist.org/forums/for...nt-to-a-border, however Robert Picard already starts with a grid file for Mexico. In which case, I guess my question could be: would there be an equivalent grid file for South Eastern USA that I could use?
I was also informed that obtaining coordinates is possible using QGIS.
Bottom line is, any help with identifying coordinates on a US state border would be greatly appreciated

Comment