log using nhis1997_poiepsod, text replace set mem 1000m /*------------------------------------------------ This program reads the 1997 National Health Interview Survey 1997 poiepsod Data File by Jean Roth Mon Jul 2 15:42:21 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 nhis1997_poiepsod ----------------------------------------------- */ /* 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/nhis/ftp.cdc.gov/pub/Health_Statistics/NCHS/Datasets/NHIS/1997/poiepsod.dat" /* The following line should contain the path to your output '.dta' file */ local dta_name "./nhis1997_poiepsod" /* The following line should contain the path to the data dictionary file */ local dct_name "./nhis1997_poiepsod.dct" infile using "`dct_name'", using("`dat_name'") clear *Everything below this point are value labels #delimit ; ; label values rectype rectype; label define rectype 80 "Poison Episode" ; label values srvy_yr srvy_yr; label define srvy_yr 1997 "1997" "2" "Second poison episode" "3" "Third poison episode" "4" "Fourth poison episode" ; label values poidtem poidtem; label define poidtem 01 "January" 02 "February" 03 "March" 04 "April" 05 "May" 06 "June" 07 "July" 08 "August" 09 "September" 10 "October" 11 "November" 12 "December" 97 "Refused" 98 "Not ascertained" 99 "Don't know" ; label values pday pday; label define pday 01 "Sunday" 02 "Monday" 03 "Tuesday" 04 "Wednesday" 05 "Thursday" 06 "Friday" 07 "Saturday" 97 "Refused" 98 "Not ascertained" 99 "Don't know" ; label values poidtey poidtey; label define poidtey 1996 "1996" 1997 "1997" 1998 "1998" 9997 "Refused" 9998 "Not ascertained" 9999 "Don't know" ; label values rpckdmp rpckdmp; label define rpckdmp 92 "92-99 days" 93 "Same month as interview" 94 "Month before month of interview" 95 "2 months before month of interview" 96 "3 or 4 months before month of interview" 98 "Not ascertained" ; label values poitpr2 poitpr2l; label define poitpr2l 01 "A drug or med substance used mistakenly/od" 02 "A harmful or toxic solid or liquid substance" 03 "Inhaling gases or vapors" 04 "Eating poisonous plant/substance" 05 "A venomous animal or plant" 06 "Something else - poisoning" 07 "Allergic/adverse reaction to med/otr substance" 08 "Something else - NOT poisoning" 97 "Refused" 98 "Not ascertained" 99 "Don't know" ; label values poicc poicc; label define poicc 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" ; label values phosp phosp; label define phosp 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" ; label values phno phno; label define phno 95 "95+ nights" 97 "Refused" 98 "Not ascertained" 99 "Don't know" ; label values pwkls pwkls; label define pwkls 0 "None" 1 "Less than 1 day" 2 "One to five days" 3 "Six or more days" 6 "Not employed at the time of poisoning" 7 "Refused" 8 "Not ascertained" 9 "Don't know" ; label values pscls pscls; label define pscls 0 "None" 1 "Less than 1 day" 2 "One to five days" 3 "Six or more days" 6 "Not in school at the time of the injury" 7 "Refused" 8 "Not ascertained" 9 "Don't know" ; #delimit cr save nhis1997_poiepsod,replace /* 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. */