Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Geocoding points into regions in Stata


From   Jeremy Wells <jwell33@tigers.lsu.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: Geocoding points into regions in Stata
Date   Thu, 11 Apr 2013 11:13:16 -0500

Hi all,

I have begun working with Dr. Pisati's fun Stata geocoding commands, and although I have found some useful information here regarding my question, I have not found any definitive answers.

I have data that are geocoded (latitude and longitude), but I need to aggregate them to the region level. The regions are demarcated in the coordinate file (from shp2dta), and the data file contains only latitude and longitude. I am working with about 76,000 observations across 34 regions, so is there a way to automatically generate a variable in the data file that contains the region ID from the coordinate file?

I have seen similar questions get a response that goes something like "look at sp_pips in the spgrid command," but this does not seem entirely useful.

Thank you,

Jeremy Wells
Ph.D. Student
LSU Dept. of Poli. Sci.
324 Stubbs Hall
Baton Rouge, LA 70803
introtoir.com
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index