*options obs=100 ; options nocenter ; **------------------------------------------------ ; ** by Jean Roth Fri Mar 14 03:34:47 EDT 2014 ** This program reads the 2001 *Territories Denominator Linked Birth Infant Death Birth Period Data Data File ; ** Report errors to jroth@nber.org ; ** This program is distributed under the GNU GPL. ; ** See end of this file and ** http://www.gnu.org/licenses/ for details. ; ** ----------------------------------------------- ; * The following line should contain the directory where the SAS file is to be stored ; libname library "/homes/data/linkpe/2001/"; * 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:\ ; FILENAME datafile pipe "unzip -p /homes/data/linkpe/ftp.cdc.gov/pub/Health_Statistics/NCHS/Datasets/DVS/periodlinkedter/LinkPE01PSDen.dat.zip "; * The following line should contain the name of the SAS dataset ; %let dataset = library.linkpe2001psden; DATA &dataset ; INFILE datafile LRECL = 20000 ; attrib matchs length=3 label="Match Status"; attrib idnumber length=4 label="Infant Death Number"; attrib biryr length=4 label="Year of Birth"; attrib resstatb length=3 label="Resident Status - Birth"; attrib brstate length=3 label="Expanded State of Residence - NCHS Codes - Birth"; attrib stoccfipb length=3 label="State of Occurrence (FIPS) Birth"; attrib cntocfipb length=4 label="County of Occurrence (FIPS) Birth"; attrib stresfipb length=3 label="State of Residence (FIPS) Birth"; attrib cntyrfpb length=4 label="County of Occurrence (FIPS) Birth"; attrib plres length=4 label="Place (City) of Residence (FIPS)"; attrib mageflg length=3 label="Age of Mother Flag"; attrib dmage length=3 label="Age of Mother"; attrib mager8 length=3 label="Age of Mother Recode 8"; attrib ormoth length=3 label="Hispanic Origin of Mother"; attrib orracem length=3 label="Hispanic Origin and Race of Mother Recode"; attrib mraceimp length=3 label="Race of Mother Imputation Flag"; attrib mrace length=3 label="Race of Mother - Birth Record or for Unlinked Records Race of Decedent from Death Record"; attrib mrace3 length=3 label="Race of Mother Recode 3"; attrib dmeduc length=3 label="Education of Mother Detail"; attrib meduc6 length=3 label="Education of Mother Recode"; attrib dmarimp length=$1 label="Marital Status of Mother Imputation Flag"; attrib dmar length=3 label="Marital Status of Mother"; attrib mplbir length=3 label="Place of Birth of Mother"; attrib mplbirr length=3 label="Place of Birth of Mother Recode"; attrib dtotord length=3 label="Detail Total Birth Order"; attrib dlivord length=3 label="Detail Live Birth Order"; attrib mpcb length=3 label="Detail Month of Pregnancy Prenatal Care Began"; attrib mpre5 length=3 label="Month Prenatal Care Began Recode 5"; attrib nprevist length=3 label="Total Number of Prenatal Visits"; attrib adequacy length=3 label="Adequacy Of Care Recode (Kessner Index)"; attrib fagerflg length=3 label="Reported Age of Father Used Flag"; attrib dfage length=3 label="Age of Father"; attrib orfath length=3 label="Hispanic Origin of Father"; attrib orracef length=3 label="Hispanic Origin and Race of Father Recode"; attrib frace length=3 label="Race of Father"; attrib pldel length=3 label="Place or Facility of Delivery"; attrib birattnd length=3 label="Attendant at Delivery"; attrib gestestm length=3 label="Clinical Estimate of Gestation Used Flag"; attrib clingest length=3 label="Clinical Estimate of Gestation"; attrib gestimp length=3 label="Gestation Imputation Flag"; attrib gestat length=3 label="Gestation - Detail in Weeks"; attrib gestat10 length=3 label="Gestation Recode 10"; attrib cseximp length=3 label="Sex Imputation Flag"; attrib csex length=3 label="Sex"; attrib bwif length=3 label="Birth Weight Imputation Flag"; attrib dbirwt length=4 label="Birth Weight - Detail in Grams (Imputed)"; attrib birwt12 length=3 label="Birth Weight Recode 12 (Imputed)"; attrib birwt4 length=3 label="Birth Weight Recode 4 (Imputed)"; attrib plurimp length=3 label="Plurality Imputation Flag"; attrib dplural length=3 label="Plurality"; attrib fmaps length=3 label="Five Minute Apgar Score"; attrib vaginal length=3 label="Vaginal"; attrib vbac length=3 label="Vaginal Birth After previous C-section"; attrib primac length=3 label="Primary C-section"; attrib repeac length=3 label="Repeat C-section"; attrib forcep length=3 label="Forceps"; attrib vacuum length=3 label="Vacuum"; attrib delmeth5 length=3 label="Method of Delivery Recode"; attrib mrflag length=3 label="No Medical Risk Factors Reported Flag"; attrib anemia length=3 label="Anemia (Hct.<30/Hgb.<10)"; attrib cardiac length=3 label="Cardiac disease"; attrib lung length=3 label="Acute or chronic lung disease"; attrib diabetes length=3 label="Diabetes"; attrib herpes length=3 label="Genital herpes"; attrib hydra length=3 label="Hydramnios/Oligohydramnios"; attrib hemo length=3 label="Hemoglobinopathy"; attrib chyper length=3 label="Hypertension - chronic"; attrib phyper length=3 label="Hypertension - pregnancy-associated"; attrib eclamp length=3 label="Eclampsia"; attrib incervix length=3 label="Incompetent cervix"; attrib pre4000 length=3 label="Previous infant 4000+ grams"; attrib preterm length=3 label="Previous preterm or small-for-gestational-age infant"; attrib renal length=3 label="Renal disease"; attrib rh length=3 label="Rh sensitization"; attrib uterine length=3 label="Uterine bleeding"; attrib othermr length=3 label="Other Medical Risk Factors"; attrib tobacco length=3 label="Tobacco Use During Pregnancy"; attrib cigar length=3 label="Average Number of Cigarettes Per Day"; attrib cigar6 length=3 label="Average Number of Cigarettes Per Day Recode"; attrib alcohol length=3 label="Alcohol Use During Pregnancy"; attrib drink length=3 label="Average Number of Drinks Per Week"; attrib drink5 length=3 label="Average Number of Drinks Per Week Recode"; attrib wtgain length=3 label="Weight Gain During Pregnancy"; attrib wtgain9 length=3 label="Weight Gain Recode"; attrib obflag length=3 label="Obstetric Flag"; attrib amnio length=3 label="Amniocentesis"; attrib monitor length=3 label="Electronic fetal monitoring"; attrib induct length=3 label="Induction of labor"; attrib stimula length=3 label="Stimulation of labor"; attrib tocol length=3 label="Tocolysis"; attrib ultras length=3 label="Ultrasound"; attrib otherob length=3 label="Other Obstetric Procedures"; attrib fbflag length=3 label="Labor Flag"; attrib febrile length=3 label="Febrile (>100 degrees F. or 38 degrees C.)"; attrib meconium length=3 label="Meconium - moderate/heavy"; attrib rupture length=3 label="Premature rupture of membrane (>12 hours)"; attrib abruptio length=3 label="Abruptio placenta"; attrib preplace length=3 label="Placenta previa"; attrib excebld length=3 label="Other excessive bleeding"; attrib seizure length=3 label="Seizures during labor"; attrib precip length=3 label="Precipitous labor (<3 hours)"; attrib prolong length=3 label="Prolonged labor (>20 hours)"; attrib dysfunc length=3 label="Dysfunctional labor"; attrib breech length=3 label="Breech/Malpresentation"; attrib cephalo length=3 label="Cephalopelvic disproportion"; attrib cord length=3 label="Cord prolapse"; attrib anesthe length=3 label="Anesthetic complications"; attrib distress length=3 label="Fetal distress"; attrib otherlb length=3 label="Other Complication of Labor and/or Delivery"; attrib nbflag length=3 label="Newborn Flag"; attrib nanemia length=3 label="Anemia (Hct.<39/Hgb.<13)"; attrib injury length=3 label="Birth injury"; attrib alcosyn length=3 label="Fetal alcohol syndrome"; attrib hyaline length=3 label="Hyaline membrane disease"; attrib meconsyn length=3 label="Meconium aspiration syndrome"; attrib venl30 length=3 label="Assisted ventilation - less than 30 minutes"; attrib ven30m length=3 label="Assisted ventilation - 30 minutes or more"; attrib nseiz length=3 label="Seizures"; attrib otherab length=3 label="Other Abnormal Conditions of the Newborn"; attrib cgflag length=3 label="Congenital Flag"; attrib anen length=3 label="Anencephalus"; attrib spina length=3 label="Spina bifida/Meningocele"; attrib hydro length=3 label="Hydrocephalus"; attrib microce length=3 label="Microcephalus"; attrib nervous length=3 label="Other central nervous system anomalies"; attrib heart length=3 label="Heart malformations"; attrib circul length=3 label="Other circulatory/respiratory anomalies"; attrib rectal length=3 label="Rectal atresia/stenosis"; attrib tracheo length=3 label="Tracheo-esophageal fistula/Esophageal atresia"; attrib omphalo length=3 label="Omphalocele/Gastroschisis"; attrib gastro length=3 label="Other gastrointestinal anomalies"; attrib genital length=3 label="Malformed genitalia"; attrib renalage length=3 label="Renal agenesis"; attrib urogen length=3 label="Other urogenital anomalies"; attrib cleftlp length=3 label="Cleft lip/palate"; attrib adactyly length=3 label="Polydactyly/Syndactyly/Adactyly"; attrib clubfoot length=3 label="Club foot"; attrib hernia length=3 label="Diaphragmatic hernia"; attrib musculo length=3 label="Other musculoskeletal/integumental anomalies"; attrib downs length=3 label="Down's syndrome"; attrib chromo length=3 label="Other chromosomal anomalies"; attrib othercon length=3 label="Other Congenital Anomalies"; attrib origm length=3 label="Origin of mother"; attrib origf length=3 label="Origin of father"; attrib educm length=3 label="Education of mother"; attrib manner length=3 label="Manner of Death"; attrib geste length=3 label="Clinical estimate of gestation"; attrib fmapsrf length=3 label="5-minute Apgar score"; attrib delmetrf length=3 label="Method of delivery"; attrib medrsk length=3 label="Medical risk factors"; attrib tobuse length=3 label="Tobacco use"; attrib alcuse length=3 label="Alcohol use"; attrib wtgn length=3 label="Weight gain"; attrib obstrc length=3 label="Obstetric procedures"; attrib clabor length=3 label="Complications of labor and/or delivery"; attrib abnml length=3 label="Abnormal conditions of newborn"; attrib congan length=3 label="Congenital anomalies"; attrib apiflag length=3 label="Race codes 18-68 reported (beginning with 1992 data)"; attrib cdobmimp length=3 label="Month of Birth of Child Imputation Flag"; attrib birmon length=3 label="Month of Birth"; attrib weekdayb length=3 label="Day of Week Child Born"; INPUT @1 matchs 1. @2 idnumber 5. @7 biryr 4. @11 resstatb 1. @12 brstate 2. @14 stoccfipb 2. @14 cntocfipb 5. @19 stresfipb 2. @19 cntyrfpb 5. @24 plres 5. @29 mageflg 1. @30 dmage 2. @32 mager8 1. @33 ormoth 1. @34 orracem 1. @35 mraceimp 1. @36 mrace 2. @38 mrace3 1. @39 dmeduc 2. @41 meduc6 1. @42 dmarimp $1. @43 dmar 1. @44 mplbir 2. @46 mplbirr 1. @47 dtotord 2. @49 dlivord 2. @51 mpcb 2. @53 mpre5 1. @54 nprevist 2. @56 adequacy 1. @60 fagerflg 1. @61 dfage 2. @63 orfath 1. @64 orracef 1. @65 frace 2. @67 pldel 1. @68 birattnd 1. @70 gestestm 1. @71 clingest 2. @73 gestimp 1. @74 gestat 2. @76 gestat10 2. @78 cseximp 1. @79 csex 1. @80 bwif 1. @81 dbirwt 4. @85 birwt12 2. @87 birwt4 1. @88 plurimp 1. @89 dplural 1. @90 fmaps 2. @92 vaginal 1. @93 vbac 1. @94 primac 1. @95 repeac 1. @96 forcep 1. @97 vacuum 1. @99 delmeth5 1. @100 mrflag 1. @101 anemia 1. @102 cardiac 1. @103 lung 1. @104 diabetes 1. @105 herpes 1. @106 hydra 1. @107 hemo 1. @108 chyper 1. @109 phyper 1. @110 eclamp 1. @111 incervix 1. @112 pre4000 1. @113 preterm 1. @114 renal 1. @115 rh 1. @116 uterine 1. @117 othermr 1. @118 tobacco 1. @119 cigar 2. @121 cigar6 1. @122 alcohol 1. @123 drink 2. @125 drink5 1. @126 wtgain 2. @128 wtgain9 1. @129 obflag 1. @130 amnio 1. @131 monitor 1. @132 induct 1. @133 stimula 1. @134 tocol 1. @135 ultras 1. @136 otherob 1. @137 fbflag 1. @138 febrile 1. @139 meconium 1. @140 rupture 1. @141 abruptio 1. @142 preplace 1. @143 excebld 1. @144 seizure 1. @145 precip 1. @146 prolong 1. @147 dysfunc 1. @148 breech 1. @149 cephalo 1. @150 cord 1. @151 anesthe 1. @152 distress 1. @153 otherlb 1. @154 nbflag 1. @155 nanemia 1. @156 injury 1. @157 alcosyn 1. @158 hyaline 1. @159 meconsyn 1. @160 venl30 1. @161 ven30m 1. @162 nseiz 1. @163 otherab 1. @164 cgflag 1. @165 anen 1. @166 spina 1. @167 hydro 1. @168 microce 1. @169 nervous 1. @170 heart 1. @171 circul 1. @172 rectal 1. @173 tracheo 1. @174 omphalo 1. @175 gastro 1. @176 genital 1. @177 renalage 1. @178 urogen 1. @179 cleftlp 1. @180 adactyly 1. @181 clubfoot 1. @182 hernia 1. @183 musculo 1. @184 downs 1. @185 chromo 1. @186 othercon 1. @187 origm 1. @188 origf 1. @189 educm 1. @190 manner 1. @191 geste 1. @193 fmapsrf 1. @194 delmetrf 1. @195 medrsk 1. @196 tobuse 1. @197 alcuse 1. @198 wtgn 1. @199 obstrc 1. @200 clabor 1. @201 abnml 1. @202 congan 1. @203 apiflag 1. @204 cdobmimp 1. @205 birmon 2. @209 weekdayb 1. ; proc print data=&dataset. (obs=6); proc contents data=&dataset.; ** Copyright 2014 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. ;