Generating Random Locations Within a Latitude-Longitude Circle Using STATA
5 Pages Posted: 16 Apr 2018 Last revised: 29 Apr 2018
Date Written: April 20, 2018
A STATA program is provided that generates random values around a central location based on Latitude and Longitude. As an illustration, I generate 1,000 random Latitude-Longitude pairs within a five-mile radius around Birmingham, Alabama. A map is provided illustrating the output. This is a revision that includes a better solution offered by Robert Picard.
Keywords: Spatial Analysis, Econometrics, STATA, simulation, Latitude, Longitude
JEL Classification: C00, R00
Suggested Citation: Suggested Citation