*This program reads the 2005 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 Apr 1 15:00:01 EDT 2008 *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:\natl2005.sps". *and choose to RUN ALL file handle natl2005 /name="c:\homes\data\natality\2005\data\natl2005.dat" . data list file=natl2005 / revision 7-7 (a) recwt 8 dob_yy 15-18 dob_mm 19-20 dob_wk 29 ostate 30-31 (a) xostate 32-33 (a) ocntyfips 37-39 ocntypop 40 ubfacil 42 bfacil3 59 mage_impflg 87 mage_repflg 88 mager 89-90 mager14 91-92 mager9 93 umbstate 96-97 (a) mbstate_rec 100 xmrstate 107-108 (a) mrstate 109-110 (a) mrcntyfips 114-116 mrcityfips 120-124 cmsa 125-126 msa 127-130 msa_pop 131-131 (a) rcnty_pop 132-132 (a) rcity_pop 133-133 (a) metrores 135-135 (a) rectype 137 restatus 138 mbrace 139-140 mrace 141-142 mracerec 143 mraceimp 144-144 (a) umhisp 148 mracehisp 149 mar 153 mar_imp 154 meduc 155 dmeduc 156-157 meduc_rec 158 fagerpt_flg 175 fagerpt 176-177 fagecomb 182-183 ufagecomb 184-185 fagerec11 186-187 fbrace 188-189 fraceimp 190 fracerec 191 ufhisp 195 fracehisp 196 frace 199-200 priorlive 204-205 priordead 206-207 priorterm 208-209 lbo 210-211 lbo_rec 212 tbo 215-216 tbo_rec 217 dllb_mm 220-221 dllb_yy 222-225 precare 245-246 precare_rec 247 mpcb 256-257 mpcb_rec6 258 mpcb_rec5 259 uprevis 270-271 previs_rec 272-273 apncu 275 wtgain 276-277 wtgain_rec 278 u_apncu 279 dfpc_imp 280 cig_0 282-283 cig_1 284-285 cig_2 286-287 cig_3 288-289 tobuse 290 cigs 291-292 cig_rec6 293 cig_rec 294-294 (a) alcohol 295 drinks 296-297 drinks_rec 298 urf_anemia 328 urf_card 329 urf_lung 330 urf_diab 331 urf_gen 332 urf_hydra 333 urf_hemo 334 urf_chyper 335 urf_phyper 336 urf_eclam 337 urf_incerv 338 urf_pre4000 339 urf_preterm 340 urf_renal 341 urf_rh 342 urf_uterine 343 urf_other 344 uop_amnio 355 uop_monit 356 uop_induc 357 uop_stiml 358 uop_tocol 359 uop_ultra 360 uop_other 361 uld_febr 374 uld_meco 375 uld_ruptr 376 uld_abrup 377 uld_prepla 378 uld_excbl 379 uld_seiz 380 uld_precip 381 uld_prolg 382 uld_dysfn 383 uld_breech 384 uld_cephal 385 uld_cord 386 uld_anest 387 uld_distr 388 uld_other 389 ume_vag 395 ume_vbac 396 ume_primc 397 ume_repec 398 ume_forcp 399 ume_vac 400 dmeth_rec 401 attend 408 apgar5 415-416 apgar5r 417 dplural 423 imp_plur 425 sex 436-436 (a) imp_sex 437 dlmp_mm 438-439 dlmp_dd 440-441 dlmp_yy 442-445 estgest 446-447 combgest 451-452 gestrec10 453-454 gestrec3 455 obgest_flg 456 gest_imp 457 dbwt 463-466 bwtr12 471-472 bwtr4 473 uab_anem 483 uab_injury 484 uab_alcoh 485 uab_hyal 486 uab_mecon 487 uab_venl30 488 uab_ven30m 489 uab_nseiz 490 uab_other 491 uca_anen 504 uca_spina 505 uca_hydro 506 uca_micro 507 uca_nerv 508 uca_heart 509 uca_circ 510 uca_rectal 511 uca_trach 512 uca_ompha 513 uca_gastro 514 uca_genital 515 uca_renal 516 uca_urogen 517 uca_cleftlp 518 uca_adactyly 519 uca_clubft 520 uca_hernia 521 uca_muscu 522 uca_downs 523 uca_chromo 524 uca_other 525 f_morigin 569 f_forigin 570 f_meduc 571 f_clinest 573 f_apgar5 574 f_tobaco 575 f_med 647 f_wtgain 648 f_alcol 649 f_api 650 f_tobac 667 f_mpcb 668 f_mpcb_u 669 f_urf_anemia 681 f_urf_cardiac 682 f_urf_lung 683 f_urf_diabetes 684 f_urf_herpes 685 f_urf_hydra 686 f_urf_hemo 687 f_urf_chyper 688 f_urf_phyper 689 f_urf_eclamp 690 f_urf_incervix 691 f_urf_pre4000 692 f_urf_preterm 693 f_urf_renal 694 f_urf_rh 695 f_urf_uterine 696 f_urf_othermr 697 f_uob_amnio 701 f_uob_monitor 702 f_uob_induct 703 f_uob_stimul 704 f_uob_tocol 705 f_uob_ultras 706 f_uob_otherob 707 f_uld_febrile 711 f_uld_meconium 712 f_uld_rupture 713 f_uld_abruptio 714 f_uld_preplace 715 f_uld_excebld 716 f_uld_seizure 717 f_uld_precip 718 f_uld_prolg 719 f_uld_dysfunc 720 f_uld_breech 721 f_uld_cephalo 722 f_uld_cord 723 f_uld_anest 724 f_uld_distr 725 f_uld_other 726 f_u_vag 730 f_u_vbac 731 f_u_primc 732 f_u_repec 733 f_u_forcp 734 f_u_vac 735 f_uab_anemia 740 f_uab_injury 741 f_uab_alcosyn 742 f_uab_hyaline 743 f_uab_meconsyn 744 f_uab_venl30 745 f_uab_ven30m 746 f_uab_seiz 747 f_uab_otherab 748 f_uca_anen 752 f_uca_spina 753 f_uca_hydro 754 f_uca_microce 755 f_uca_nervous 756 f_uca_heart 757 f_uca_circul 758 f_uca_rectal 759 f_uca_tracheo 760 f_uca_omphalo 761 f_uca_gastro 762 f_uca_genital 763 f_uca_renalag 764 f_uca_urogen 765 f_uca_cleftlp 766 f_uca_adactyl 767 f_uca_club 768 f_uca_hernia 769 f_uca_musculo 770 f_uca_downs 771 f_uca_chromo 772 f_uca_othrcon 773 mrace1e 1088-1090 (a) mrace2e 1091-1093 (a) mrace3e 1094-1096 (a) mrace4e 1097-1099 (a) mrace5e 1100-1102 (a) mrace6e 1103-1105 (a) mrace7e 1106-1108 (a) mrace8e 1109-1111 (a) frace1e 1422-1424 (a) frace2e 1425-1427 (a) frace3e 1428-1430 (a) frace4e 1431-1433 (a) frace5e 1434-1436 (a) frace6e 1437-1439 (a) frace7e 1440-1442 (a) frace8e 1443-1445 (a) . * See the codebook for more detailed variable descriptions. variable labels revision "Revision U;R" recwt "Record Weight U;R" dob_yy "Birth Year U;R" dob_mm "Birth Month U;R" dob_wk "Weekday U;R" ostate "Occurrence State U;R" xostate "Expanded Occurrence State U;R" ocntyfips "Occurrence FIPS County U;R" ocntypop "Occurence County Population U;R" ubfacil "Birth Place U;R" bfacil3 "Birth Place Recode U;R" mage_impflg "Mother's Age Imputated Flag U;R" mage_repflg "Reported Age of Mother Flag U;R" mager "Mother's Single Year of Age U;R" mager14 "Mother's Age Recode 14 U;R" mager9 "Mother's Age Recode 9 U;R" umbstate "Mother's Birth State U;R" mbstate_rec "Mother's Birth State Recode U;R" xmrstate "Expanded State of Residence of Mother U;R" mrstate "Mother's Residence State U;R" mrcntyfips "Mother's County of Residence (FIPS) U;R" mrcityfips "Mother's Place of Residence (FIPS) U;R" cmsa "Consolidated Metropolitan Statistical Area U;R " msa "Metropolitan Statistical Area U;R " msa_pop "Population of Statistical Area U;R " rcnty_pop "Population of Residence County U;R " rcity_pop "Population of Residence City U;R " metrores "Metropolitan Residence County U;R" rectype "Record Type U;R" restatus "Resident Status U;R" mbrace "Mother's Bridged Race R " mrace "Mother's Race U " mracerec "Mother's Race Recode U;R" mraceimp "Mother's Race Imputed Flag U;R " umhisp "Mother's Hispanic Origin U;R " mracehisp "Mother's Race/Hispanic Origin U;R " mar "Mother's Marital Status U;R" mar_imp "Mother's Marital Status Imputed Flag U;R" meduc "Mother's Education R " dmeduc "Mother's Education U " meduc_rec "Mother's Education Recode U " fagerpt_flg "Father's Reported Age Used U;R" fagerpt "Father's Reported Age U;R" fagecomb "Father's Combined Age (Revised) R" ufagecomb "Father's Combined Age U" fagerec11 "Father's Age Recode 11 U;R" fbrace "Father's Bridged Race R " fraceimp "Father's Race Imputed U" fracerec "Father's Race Recode U;R" ufhisp "Father's Hispanic Origin U;R " fracehisp "Father's Race/Hispanic Origin U;R " frace "Father's Race U " priorlive "Prior Births Now Living U;R" priordead "Prior Births Now Dead U;R" priorterm "Prior Other Terminations U;R" lbo "Live Birth Order U;R" lbo_rec "Live Birth Order Recode U;R" tbo "Total Birth Order U;R" tbo_rec "Total Birth Order Recode U;R" dllb_mm "Date of Last Live Birth - Month U;R" dllb_yy "Date of Last Live Birth - Year U;R" precare "Month Prenatal Care Began R" precare_rec "Month Prenatal Care Began Recode R" mpcb "Month Prenatal Care Began U" mpcb_rec6 "Month Prenatal Care Began Recode 6 U" mpcb_rec5 "Month Prenatal Care Began Recode 5 U" uprevis "Number of Prenatal Visits U;R" previs_rec "Number of Prenatal Visits Recode U;R" apncu "Adequacy of Prenatal Care Utilization Index R" wtgain "Weight Gain U;R" wtgain_rec "Weight Gain Recode U;R" u_apncu "Adequacy of Prenatal Care Utilization Index U" dfpc_imp "Day of Date First Prenatal Care Imputed R " cig_0 "Cigarettes Before Pregnancy R " cig_1 "Cigarettes 1st Trimester R " cig_2 "Cigarettes 2nd Trimester R " cig_3 "Cigarettes 3rd Trimester R " tobuse "Tobacco Use U" cigs "Cigarettes Per Day U" cig_rec6 "Cigarettes Recode U" cig_rec "Cigarettes Recode R" alcohol "Alcohol Use U " drinks "Drinks Per Week U" drinks_rec "Drinks Recode U " urf_anemia "Anemia U " urf_card "Cardiac U" urf_lung "Acute or Chronic Lung Disease U" urf_diab "Diabetes U;R" urf_gen "Genital Herpes U" urf_hydra "Hydramnios/Oligohydramnios U" urf_hemo "Hemoglobinopathy U" urf_chyper "Chronic Hypertension U;R" urf_phyper "Pregnancy Associated Hypertension U;R" urf_eclam "Eclampsia U;R" urf_incerv "Incompetent cervix U" urf_pre4000 "Previous infant 4000+ Grams U" urf_preterm "Previous Preterm or Small for Gestation U" urf_renal "Renal disease U" urf_rh "Rh sensitization U" urf_uterine "Uterine bleeding U" urf_other "Other Medical Risk Factors U" uop_amnio "Amniocentesis U" uop_monit "Electronic Fetal Monitoring U" uop_induc "Induction of labor U;R" uop_stiml "Stimulation of labor U" uop_tocol "Tocolysis U;R" uop_ultra "Ultrasound U" uop_other "Other Obstetric Procedures U" uld_febr "Febrile U" uld_meco "Meconium U;R" uld_ruptr "Premature Rupture of Membrane U" uld_abrup "Abruptio placenta U" uld_prepla "Placenta previa U" uld_excbl "Other Excessive Bleeding U" uld_seiz "Seizures During Labor U " uld_precip "Precipitous labor U;R" uld_prolg "Prolonged Labor U" uld_dysfn "Dysfunctional Labor U" uld_breech "Breech U;R" uld_cephal "Cephalopelvic Disproportion U" uld_cord "Cord Prolapse U" uld_anest "Anesthetic Complications U" uld_distr "Fetal Distress U" uld_other "Other Complications U" ume_vag "Vaginal U;R" ume_vbac "Vaginal after C-Section U;R" ume_primc "Primary C-Section U;R" ume_repec "Repeat C-Section U;R" ume_forcp "Forceps U;R " ume_vac "Vacuum U;R" dmeth_rec "Delivery Method Recode U;R" attend "Attendant U;R" apgar5 "Five Minute Apgar Score U;R" apgar5r "Five Minute Apgar Recode U;R" dplural "Plurality U;R" imp_plur "Plurality Imputed U;R" sex "Sex U;R" imp_sex "Imputed Sex " dlmp_mm "Last Normal Menses - Month U;R" dlmp_dd "Last Normal Menses - Day U;R" dlmp_yy "Last Normal Menses - Year U;R" estgest "Obstetric/Clinical Gestation Est. U;R " combgest "Gestation - Detail in Weeks U;R" gestrec10 "Gestation Recode 10 U;R" gestrec3 "Gestation Recode 3 U;R" obgest_flg "Clinical Estimate of Gestation Used Flag U;R " gest_imp "Gestation Imputed Flag U;R" dbwt "Birth Weight - Detail in Grams U;R" bwtr12 "Birth Weight Recode 12 U;R" bwtr4 "Birth Weight Recode 4 U;R" uab_anem "Anemia U" uab_injury "Birth Injury U" uab_alcoh "Fetal Alcohol Syndrome U" uab_hyal "Hyaline Membrane Disease U" uab_mecon "Meconium Aspiration Syndrome U" uab_venl30 "Assisted Ventilation < 30 min U" uab_ven30m "Assisted Ventilation >= 30 min U" uab_nseiz "Seizures U" uab_other "Other Abnormal Conditions U" uca_anen "Anencephalus U;R" uca_spina "Spina bifida/Meningocele U;R" uca_hydro "Hydrocephalus U" uca_micro "Microcephalus U" uca_nerv "Other Central Nervous System Anomalies U" uca_heart "Heart malformations U" uca_circ "Other Circulatory/Respiratory Anomalies U" uca_rectal "Rectal Atresia/Stenosis U" uca_trach "Tracheo-Esophageal Fistula U" uca_ompha "Omphalocele/Gastroschisis U;R" uca_gastro "Other Gastrointestinal Anomalies U" uca_genital "Malformed Genitalia U " uca_renal "Renal Agenesis U" uca_urogen "Other Urogenital Anomalies U" uca_cleftlp "Cleft Lip/Palate U;R" uca_adactyly "Polydactyly/Syndactyly/Adactyly U" uca_clubft "Club Foot U" uca_hernia "Diaphragmatic Hernia U" uca_muscu "Other Musculoskeletal Anomalies U" uca_downs "Down Syndrome U;R" uca_chromo "Other Chromosomal Anomalies U" uca_other "Other Congenital Anomalies U" f_morigin "Origin of Mother U;R" f_forigin "Origin of Father U;R" f_meduc "Education of Mother R" f_clinest "Clinical Estimate of Gestation U;R" f_apgar5 "5 - minute Apgar U;R" f_tobaco "Tobacco use R" f_med "Mother's Education U" f_wtgain "Weight gain U;R" f_alcol "Alcohol use U" f_api "API codes U" f_tobac "Tobacco use U" f_mpcb "Month Prenatal Care Began R" f_mpcb_u "Month Prenatal Care Began U" f_urf_anemia "Anemia U" f_urf_cardiac "Cardiac U" f_urf_lung "Acute or Chronic Lung Disease U" f_urf_diabetes "Diabetes U" f_urf_herpes "Genital Herpes U" f_urf_hydra "Hydramnios/Oligohydramnios U" f_urf_hemo "Hemoglobinopathy U" f_urf_chyper "Chronic Hypertension U" f_urf_phyper "Pregnancy Associated Hypertension U" f_urf_eclamp "Eclampsia U" f_urf_incervix "Incompetent Cervix U" f_urf_pre4000 "Previous Infant 4000+ Grams U" f_urf_preterm "Previous Preterm Small for Gestation U" f_urf_renal "Renal Disease U" f_urf_rh "Rh Sensitization U" f_urf_uterine "Uterine Bleeding U" f_urf_othermr "Other Medical Risk Factors U" f_uob_amnio "Amniocentesis U" f_uob_monitor "Electronic Fetal Monitoring U" f_uob_induct "Induction of labor U" f_uob_stimul "Stimulation of labor U" f_uob_tocol "Tocolysis U" f_uob_ultras "Ultrasound U" f_uob_otherob "Other Obstetric Procedures U" f_uld_febrile "Febrile U" f_uld_meconium "Meconium U" f_uld_rupture "Premature Rupture of Membrane U" f_uld_abruptio "Abruptio placenta U" f_uld_preplace "Placenta previa U" f_uld_excebld "Other Excessive Bleeding U" f_uld_seizure "Seizures During Labor U " f_uld_precip "Precipitous labor U" f_uld_prolg "Prolonged Labor U" f_uld_dysfunc "Dysfunctional Labor U" f_uld_breech "Breech U" f_uld_cephalo "Cephalopelvic Disproportion U" f_uld_cord "Cord Prolapse U" f_uld_anest "Anesthetic Complications U" f_uld_distr "Fetal Distress U" f_uld_other "Other Complications U" f_u_vag "Vaginal U" f_u_vbac "Vaginal after C-Section U" f_u_primc "Primary C-Section U" f_u_repec "Repeat C-Section U" f_u_forcp "Forceps U" f_u_vac "Vacuum U" f_uab_anemia "Anemia U" f_uab_injury "Birth Injury U" f_uab_alcosyn "Fetal Alcohol Syndrome U" f_uab_hyaline "Hyaline Membrane Disease U" f_uab_meconsyn "Meconium Aspiration Syndrome U" f_uab_venl30 "Assisted Ventilation <30 min U" f_uab_ven30m "Assisted Ventilation >=30 min U" f_uab_seiz "Seizures U" f_uab_otherab "Other Abnormal Conditions U" f_uca_anen "Anencephalus U" f_uca_spina "Spina bifida/Meningocele U" f_uca_hydro "Hydrocephalus U" f_uca_microce "Microcephalus U" f_uca_nervous "Other Central Nervous System Anomalies U" f_uca_heart "Heart malformations U" f_uca_circul "Other Circulatory/Respiratory Anomalies U" f_uca_rectal "Rectal Atresia/Stenosis U" f_uca_tracheo "Tracheo-Esophageal Fistula U" f_uca_omphalo "Omphalocele/Gastroschisis U" f_uca_gastro "Other Gastrointestinal Anomalies U" f_uca_genital "Malformed Genitalia U " f_uca_renalag "Renal Agenesis U" f_uca_urogen "Other Urogenital Anomalies U" f_uca_cleftlp "Cleft Lip/Palate U" f_uca_adactyl "Polydactyly/Syndactyly/Adactyly U" f_uca_club "Club Foot U" f_uca_hernia "Diaphragmatic Hernia U" f_uca_musculo "Other Musculoskeletal Anomalies U" f_uca_downs "Down Syndrome U" f_uca_chromo "Other Chromosomal Anomalies U" f_uca_othrcon "Other Congenital Anomalies U" mrace1e "Mother's Race Edited R" mrace2e "Mother's Race Edited R" mrace3e "Mother's Race Edited R" mrace4e "Mother's Race Edited R" mrace5e "Mother's Race Edited R" mrace6e "Mother's Race Edited R" mrace7e "Mother's Race Edited R" mrace8e "Mother's Race Edited R" frace1e "Father's Race Edited R" frace2e "Father's Race Edited R" frace3e "Father's Race Edited R" frace4e "Father's Race Edited R" frace5e "Father's Race Edited R" frace6e "Father's Race Edited R" frace7e "Father's Race Edited R" frace8e "Father's Race Edited R" . list. execute. save outfile = 'c:\natl2005.sav'. *Copyright 2008 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.