log using seer_pop, text replace set mem 1000m /*------------------------------------------------ This program reads the Survey of Epidemiology and End Results (SEER) U.S. Population Data Data File by Jean Roth Wed Apr 25 16:51:52 EDT 2007 Please report errors to jroth@nber.org NOTE: This program is distributed under the GNU GPL. See end of this file and http://www.gnu.org/licenses/ for details. Run with do seer_pop ----------------------------------------------- */ /* The following line should contain the complete path and name of the raw data file. On a PC, use backslashes in paths as in C:\ */ local dat_name "/homes/data/seer-pop/us.1969_2004.singleages.txt" /* The following line should contain the path to your output '.dta' file */ local dta_name "./seer_pop" /* The following line should contain the path to the data dictionary file */ local dct_name "./seer_pop.dct" infile using "`dct_name'", using("`dat_name'") clear *Everything below this point are value labels #delimit ; ; label values registry registry; label define registry 01 "San Francisco-Oakland SMSA" 02 "Connecticut" 20 "Detroit (Metropolitan)" 21 "Hawaii" 22 "Iowa" 23 "New Mexico" 25 "Seattle (Puget Sound)" 26 "Utah" 27 "Atlanta (Metropolitan)" 29 "Alaska Natives" 31 "San Jose-Monterey" 33 "Arizona Indians" 35 "Los Angeles" 37 "Rural Georgia" 41 "California excluding SF/SJM/LA" 42 "Kentucky" 43 "Louisiana" 44 "New Jersey" 99 "Registry for non-SEER area" ; label values race race; label define race 1 "White" 2 "Black" 3 "Other (1969+)/American Indian/Alaska Native (1990+)" 4 "Asian or Pacific Islander (1990+)" ; label values hispanic hispanic; label define hispanic 0 "Non-Hispanic" 1 "Hispanic" 9 "Not applicable in 1969-2004 W" ; label values sex sex; label define sex 1 "Male" 2 "Female" ; label values age age; label define age 00 "0 years" 01 "1-4 years" 02 "5-9 years" 03 "10-14 years" 04 "15-19 years" 05 "20-24 years" 06 "25-29 years" 07 "30-34 years" 08 "35-39 years" 09 "40-44 years" 10 "45-49 years" 11 "50-54 years" 12 "55-59 years" 13 "60-64 years" 14 "65-69 years" 15 "70-74 years" 16 "75-79 years" 17 "80-84 years" 18 "85+ years" ; /* Copyright 2007 shared by the National Bureau of Economic Research and Jean Roth National Bureau of Economic Research. 1050 Massachusetts Avenue Cambridge, MA 02138 jroth@nber.org This program and all programs referenced in it are free software. You can redistribute the program or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */