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 at the end of May, and its replacement, statalist.org is already up and running.


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

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


From   "Dimitriy V. Masterov" <dvmaster@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Census Tract from lat/long or address
Date   Tue, 19 Apr 2011 16:58:43 -0400

Sharon,

I don't think you need to calculate the centroids manually. For
example, you can find the centroid data here:

http://www.census.gov/geo/www/cenpop/tract/tract_pop.txt

The columns are:
The State FIPS code (2-digits)
County FIPS code (3-digits)
Census Tract number (4-digits with possible 2-digit suffix)
Census 2000 population
Calculated centroid latitude (with sign)
Calculated centroid longitude (with sign)

HTH,
DVM

HTH,
DVM

On Tue, Apr 19, 2011 at 4:35 PM, Sharooon <treeshar@yahoo.com> wrote:
> 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 <dvmaster@gmail.com> wrote:
>
>> From: Dimitriy V. Masterov <dvmaster@gmail.com>
>> Subject: Re: st: Census Tract from lat/long or address
>> To: statalist@hsphsun2.harvard.edu
>> 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 <treeshar@yahoo.com>
>> 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/
>

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index