Generating Random Locations Within a Latitude-Longitude Circle Using STATA

5 Pages Posted: 16 Apr 2018 Last revised: 29 Apr 2018

See all articles by George S. Ford

George S. Ford

Phoenix Center for Advanced Legal & Economic Public Policy Studies

Date Written: April 20, 2018

Abstract

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

Ford, George S., Generating Random Locations Within a Latitude-Longitude Circle Using STATA (April 20, 2018). Available at SSRN: https://ssrn.com/abstract=3156061 or http://dx.doi.org/10.2139/ssrn.3156061

George S. Ford (Contact Author)

Phoenix Center for Advanced Legal & Economic Public Policy Studies ( email )

5335 Wisconsin Avenue, NW
Suite 440
Washington, DC 20015
United States

Here is the Coronavirus
related research on SSRN

Paper statistics

Downloads
98
Abstract Views
1,116
rank
292,343
PlumX Metrics