Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Census Tract from lat/long or address


From   Sharooon <[email protected]>
To   [email protected]
Subject   Re: st: Census Tract from lat/long or address
Date   Tue, 19 Apr 2011 13:35:13 -0700 (PDT)

Thank you. I am almost there, but need some more advice.

I have downloaded the census data from here: http://www.census.gov/geo/www/cob/tr2000.html

and input it into stata using shp2dta. This leaves me with two datasets, which link together with an ID variable. One dataset contains (perimeter?) points for each census tract and the other contains information such as the state, county (in numbers, not names), tract and some variables that I don't understand. Now the problem is I don't know how to get the centroid for the census tract. I've found the program centroid, and used that writing centroid _X _Y, group(_ID) but all it did was create 100 DIST variables. Hints?

Thank you for all your help already!


--- On Tue, 4/19/11, Dimitriy V. Masterov <[email protected]> wrote:

> From: Dimitriy V. Masterov <[email protected]>
> Subject: Re: st: Census Tract from lat/long or address
> To: [email protected]
> Date: Tuesday, April 19, 2011, 3:03 PM
> Sharon,
> 
> You need to get a dataset that has the lat and lon of the
> centroid for
> each tract.
> 
> The you can use a user-written program called geonear
> (avaiable from
> ssc) to match the coordinates of each address to the
> closest tract
> centroid.
> 
> DVM
> 
> 
> On Tue, Apr 19, 2011 at 2:27 PM, Sharooon <[email protected]>
> wrote:
> > Dear StataList,
> > I'm using Stata 10, and I can't figure out how to link
> census tract information to a data base of about 25,000
> residential addresses in the cities of DC and Philadelphia.
> >
> > I have both residential addresses and lat/long
> coordinates for the properties, but would like some
> demographic information on the tract level.
> >
> > Thank you,
> > Sharon
> >
> >
> > *
> > *   For searches and help try:
> > *   http://www.stata.com/help.cgi?search
> > *   http://www.stata.com/support/statalist/faq
> > *   http://www.ats.ucla.edu/stat/stata/
> >
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
> 

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index