*This program reads the 1985 NCHS Natality Detail Data File *Note: This program is distributed under the GNU GPL. See end of *this file and http://www.gnu.org/licenses/ for details. *by Jean Roth Tue Jun 24 09:49:35 EDT 2014 *Please report errors to jroth@nber.org *Change output file name/location as desired. *Change the input file location as needed. *If you have trouble running this program, *then try opening a new syntax file & type this command: *INCLUDE "c:\natl1985.sps". *and choose to RUN ALL file handle natl1985 /name="c:\homes\data\natality\ftp.cdc.gov\pub\Health_Statistics\NCHS\Datasets\DVS\natality\Nat1985.dat" . data list file=natl1985 / datayear 1 stresexp 2-3 reparea 4-4 (a) rectype 11 restatus 12 stateres 13-14 (a) cntyres 13-17 (a) cityres 18-20 (a) citrspop 21-21 (a) smsares 22-24 (a) metrores 25-25 (a) divres 26 stsubres 26-27 statenat 28-29 (a) cntynat 28-32 (a) divocc 33 stsubocc 33-34 csex 35 birattnd 36 frace 37 mrace 38 crace 39 crace3 40 dmage 41-42 mage36 43-44 mage15 45-46 mage12 47-48 mage8 49 mage7 50 mage6 51 nlbnl 52-53 nlbnd 54-55 nlbd 56-57 dtotord 58-59 totord9 60 dlivord 61-62 livord9 63 livord8 64 livord7 65 livord6 66 livord3 67 dfage 69-70 fage11 71-72 dbirwt 73-76 birwt12 77-78 birwt3 79 pldel 80 dplural 81 plural3 82 plural2 83 birmon 84-85 birday 86-87 lmpmon 88-89 lmpday 90-91 lmpyr 92-92 (a) dgestat 93-94 gestat10 95-96 gestat3 97 dmeduc 98-99 meduc14 100-101 meduc6 102 dfeduc 103-104 feduc14 105-106 dmar 107 mar2 108 monprec 109-109 (a) mpre10 110-111 mpre6 112 llbmon 113-114 llbyr 115-116 disllb 117-119 isllb17 120-121 isllb10 122-123 isllb8 124 lfdmon 125-126 lfdyr 127-128 lfdflg 129 dlfd 130-132 dterm 133-135 term9 136 outcome 137 mplbir 138-139 nprevis 140-141 congen 142 marstrflg 146 educstrflg 147 lmprflg 148 monprerflg 149 llbrflg 150 lfdrflg 151 marsmsarflg 152 educsmsarflg 153 congenrflg 154 nprevisrflg 155 ethnicrflg 157 omapsrflg 158 fmapsrflg 159 marstoflg 161 educstoflg 162 lmpoflg 163 monpreoflg 164 llboflg 165 lfdoflg 166 congenflg 167 nprevisoflg 168 ethnicoflg 170 omapsoflg 171 fmapsoflg 172 attend 176 oterml20 177-178 otermm20 179-180 omaps 181-182 omapsr 183 fmaps 184-185 fmapsr 186 origm 187-188 origf 189-190 gestimp 191 regnres 192 regnocc 193 stoccfip 194-195 (a) cntocfip 194-198 (a) stresfip 199-200 (a) cntyrfip 199-203 (a) smsarfip 204-207 (a) recwt 208 nprev28 209-210 nprev12 211-212 stnatexp 214-215 . * See the codebook for more detailed variable descriptions. variable labels datayear "Data year" stresexp "Expanded State of Residence" reparea "Reporting Area" rectype "Record type" restatus "Resident status" stateres "NCHS State of Residence" cntyres "NCHS County of Residence" cityres "NCHS City of Residence" citrspop "Population size - place of residence" smsares "Standard Metropolitan Statistical Area SMSA of residence" metrores "Met/Nonmet county of residence" divres "Division of residence" stsubres "State Subcode of Residence" statenat "NCHS State of Occurence" cntynat "NCHS County of Occurence" divocc "Division of occurrence" stsubocc "State Subcode of occurrence" csex "Sex of Child" birattnd "Attendant at birth" frace "Race of Father" mrace "Race of Mother" crace "Race of Child" crace3 "Race of Child Recode" dmage "Age of Mother" mage36 "Age of Mother recode 36" mage15 "Age of Mother recode 15" mage12 "Age of Mother recode 12" mage8 "Age of Mother recode 8" mage7 "Age of Mother recode 7" mage6 "Age of Mother recode 6" nlbnl "Born alive - now living" nlbnd "Born alive - now dead" nlbd "Number of children born dead ( fetal deaths )" dtotord "Total birth order" totord9 "Total birth order recode" dlivord "Detail Live birth order" livord9 "Live birth order Recode 9" livord8 "Live birth order Recode 8" livord7 "Live birth order Recode 7" livord6 "Live birth order Recode 6" livord3 "Live birth order Recode 3" dfage "Age of Father" fage11 "Age of Father Recode" dbirwt "Birthweight" birwt12 "Birthweight Recode 12" birwt3 "Birthweight Recode 3" pldel "Place of Delivery" dplural "Plurality" plural3 "Plurality recode 3" plural2 "Plurality recode 2" birmon "Month of birth" birday "Birth Date - Day" lmpmon "Month Last Normal Menses Began" lmpday "Day Last Normal Menses Began" lmpyr "Year Last Normal Menses Began" dgestat "Gestation" gestat10 "Gestation Recode 10" gestat3 "Gestation Recode 3" dmeduc "Education of Mother Detail" meduc14 "Education of Mother Recode 14" meduc6 "Education of Mother Recode 6" dfeduc "Education of Father" feduc14 "Education of Father Recode 14" dmar "Marital Status" mar2 "Marital Status Recode 2" monprec "Detail Month Prenatal Care began" mpre10 "Month Prenatal Care began Recode 10" mpre6 "Month Prenatal Care began Recode 6" llbmon "Month of Last Live Birth" llbyr "Year of Last Live Birth" disllb "Interval since last live birth" isllb17 "Interval since last live birth Recode 17" isllb10 "Interval since last live birth Recode 10" isllb8 "Interval since last live birth Recode 8" lfdmon "Date of Last Fetal Death - Month" lfdyr "Date of Last Fetal Death - Year" lfdflg "Flag Last Fetal Death Valid Date Flag" dlfd "Detail Interval Since Last Fetal Death" dterm "Detail Interval Since Termination of Last Pregnancy" term9 "Interval Since Termination of Last Pregnancy Recode 9" outcome "Outcome of Last Pregnancy" mplbir "Mother's Place of Birth" nprevis "Total Number of Prenatal Visits" congen "Congenital Malformation" marstrflg "Marital Status (by state) flag" educstrflg "Education of Parents (By State) flag" lmprflg "Date of Last Normal Menses (by state) flag" monprerflg "Month prenatal care began (by state) flag" llbrflg "Date of Last Live Birth (by State) flag" lfdrflg "Date of Last Fetal Death (by State) flag" marsmsarflg "Marital Status (by SMSA) flag" educsmsarflg "Education of Parents (By State) flag" congenrflg "Congenital Malformations (by state) flag" nprevisrflg "Total Number of Prenatal Visits (by state) flag" ethnicrflg "Ethnicity (by state) flag" omapsrflg "One Minute Apgar Score (by state) flag" fmapsrflg "Five Minute Apgar Score (by state) flag" marstoflg "Marital Status (by state) flag" educstoflg "Education of Parents (by state) flag" lmpoflg "Date of last normal menses (by state) flg" monpreoflg "Month prenatal care began (by state)" llboflg "Date of last live birth (by state) flag" lfdoflg "Date of last fetal death (by state) flag" congenflg "Congenital Malformations (by state) flag" nprevisoflg "Total Number of Prenatal Visits (by state) flag" ethnicoflg "Ethnicity (by state) flag" omapsoflg "One Minute Apgar Score (by state) flag" fmapsoflg "Five Minute Apgar Score (by state) flag" attend "Person in Attendance" oterml20 "Number of Other Terminations Before 20 Weeks" otermm20 "Number of Other Terminations After 20 Weeks" omaps "One Minute Apgar Score" omapsr "One Minute Apgar Score Recode" fmaps "Five Minute Apgar Score" fmapsr "Five Minute Apgar Score Recode" origm "Origin or Descent of Mother" origf "Origin or Descent of Father" gestimp "Gestation Imputation Flag" regnres "Region of Residence" regnocc "Region of Occurrence" stoccfip "State of Occurrence (FIPS)" cntocfip "County of Occurrence (FIPS)" stresfip "State of Residence (FIPS)" cntyrfip "County of Residence (FIPS)" smsarfip "FIPS SMSA of Residence" recwt "Record Weight (1 for all states since 1985)" nprev28 "Number of Prenatal Visits Recode" nprev12 "Number of Prenatal Visits Recode" stnatexp "Expanded State of Occurrence" . list. execute. save outfile = 'c:\natl1985.sav'. *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.