*This program reads the 2007 NCHS Natality Detail U.S. Territories 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 Fri Apr 13 14:41:59 EDT 2012 *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:\natlterr2007.sps". *and choose to RUN ALL file handle natlterr2007 /name="c:\homes\data\natality\ftp.cdc.gov\pub\Health_Statistics\NCHS\Datasets\DVS\natality\Nat2007ps.dat" . data list file=natlterr2007 / revision 7-7 (a) dob_yy 15-18 dob_mm 19-20 dob_wk 29 oterr 30-31 (a) ocntyfips 37-39 ocntypop 40 bfacil 41 ubfacil 42 bfacil3 59 mage_impflg 87 mage_repflg 88 mager 89-90 mager14 91-92 mager9 93 mbcntry 94-95 (a) mrterr 109-110 (a) mrcnty 114-116 rcnty_pop 132-132 (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 fagecomb 182-183 ufagecomb 184-185 fbrace 188-189 fracerec 191 ufhisp 195 fracehisp 196 fagerec11 186-187 frace 199-200 lbo_rec 212 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_1 284-285 cig_2 286-287 cig_3 288-289 tobuse 290 cigs 291-292 cig_rec6 293 cig_rec 294-294 (a) rf_diab 313-313 (a) rf_gest 314-314 (a) rf_phyp 315-315 (a) rf_ghyp 316-316 (a) rf_eclam 317-317 (a) rf_ppterm 318-318 (a) rf_ppoutc 319-319 (a) rf_cesar 324-324 (a) rf_cesarn 325-326 urf_diab 331 urf_chyper 335 urf_phyper 336 urf_eclam 337 op_cerv 351-351 (a) op_tocol 352-352 (a) op_ecvs 353-353 (a) op_ecvf 354-354 (a) uop_induc 357 uop_tocol 359 op_ruptr 362-362 (a) op_precip 363-363 (a) op_prol 364-364 (a) ld_indl 365-365 (a) ld_augm 366-366 (a) ld_nvpr 367-367 (a) ld_ster 368-368 (a) ld_anti 369-369 (a) ld_chor 370-370 (a) ld_mecs 371-371 (a) ld_fint 372-372 (a) ld_anes 373-373 (a) uld_meco 375 uld_precip 381 uld_breech 384 me_attf 390-390 (a) me_attv 391-391 (a) me_pres 392-392 (a) me_rout 393-393 (a) me_trial 394-394 (a) ume_vag 395 ume_vbac 396 ume_primc 397 ume_repec 398 ume_forcp 399 ume_vac 400 rdmeth_rec 401 udmeth_rec 402 dmeth_rec 403 attend 410 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 ab_aven1 476-476 (a) ab_aven6 477-477 (a) ab_nicu 478-478 (a) ab_surf 479-479 (a) ab_anti 480-480 (a) ab_seiz 481-481 (a) ab_binj 482-482 (a) ca_anen 492-492 (a) ca_mnsb 493-493 (a) ca_cchd 494-494 (a) ca_cdh 495-495 (a) ca_omph 496-496 (a) ca_gast 497-497 (a) ca_limb 498-498 (a) ca_cleft 499-499 (a) ca_clpal 500-500 (a) ca_down 501-501 (a) ca_disor 502-502 (a) ca_hypo 503-503 (a) uca_anen 504 uca_spina 505 uca_ompha 513 uca_cleftlp 518 uca_downs 523 f_morigin 569 f_forigin 570 f_meduc 571 f_clinest 573 f_apgar5 574 f_tobaco 575 f_rf_pdiab 582 f_rf_gdiab 583 f_rf_phyper 584 f_rf_ghyper 585 f_rf_eclamp 586 f_rf_ppb 587 f_rf_ppo 588 f_rf_cesar 593 f_rf_ncesar 594 f_ob_cervic 601 f_ob_toco 602 f_ob_succ 603 f_ob_fail 604 f_ol_rupture 605 f_ol_precip 606 f_ol_prolong 607 f_ld_induct 608 f_ld_augment 609 f_ld_nvrtx 610 f_ld_steroids 611 f_ld_antibio 612 f_ld_chorio 613 f_ld_mecon 614 f_ld_fintol 615 f_ld_anesth 616 f_md_attfor 617 f_md_attvac 618 f_md_present 619 f_md_route 620 f_md_trial 621 f_ab_vent 628 f_ab_vent6 629 f_ab_nicu 630 f_ab_surfac 631 f_ab_antibio 632 f_ab_seiz 633 f_ab_inj 634 f_ca_anen 635 f_ca_menin 636 f_ca_heart 637 f_ca_hernia 638 f_ca_ompha 639 f_ca_gastro 640 f_ca_limb 641 f_ca_cleftlp 642 f_ca_cleft 643 f_ca_downs 644 f_ca_chrom 645 f_ca_hypos 646 f_med 647 f_wtgain 648 f_tobac 667 f_mpcb 668 f_mpcb_u 669 f_urf_diabetes 684 f_urf_chyper 688 f_urf_phyper 689 f_urf_eclamp 690 f_uob_induct 703 f_uob_stimul 704 f_uob_tocol 705 f_uld_meconium 712 f_uld_precip 718 f_uld_breech 721 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_uca_anen 752 f_uca_spina 753 f_uca_omphalo 761 f_uca_cleftlp 766 f_uca_downs 771 . * See the codebook for more detailed variable descriptions. variable labels revision "Revision U;R" dob_yy "Birth Year U;R" dob_mm "Birth Month U;R" dob_wk "Weekday U;R" oterr "Occurrence Territory/Possession U;R" ocntyfips "Occurrence FIPS County U;R" ocntypop "Occurence County Population U;R" bfacil "Birth Place 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" mbcntry "Mother's Birth Country R" mrterr "Mother's Residence Territory/Posession U;R" mrcnty "Mother's County of Residence U;R" rcnty_pop "Population of Residence County U;R" rectype "Record Type U;R" restatus "Residence 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 RFP 569=f_morigin U;R" mracehisp "Mother's Race/Hispanic Origin RFP 569=f_morigin U;R" mar "Mother's Marital Status U;R" mar_imp "Mother's Marital Status Imputed Flag U;R" meduc "Mother's Education RFP 571=f_meduc R" dmeduc "Mother's Education RFP 647=f_med U" meduc_rec "Mother's Education Recode RFP 647=f_med U" fagerpt_flg "Father's Reported Age Used U;R" fagecomb "Father's Combined Age (Revised) R" ufagecomb "Father's Combined Age U" fbrace "Father's Bridged Race R**" fracerec "Father's Race Recode U;R" ufhisp "Father's Hispanic Origin RFP 570=f_forigin U;R" fracehisp "Father's Race/Hispanic Origin RFP 570=f_forigin U;R" fagerec11 "Father's Age Recode 11 U;R" frace "Father's Race U" lbo_rec "Live Birth Order Recode U;R" tbo_rec "Total Birth Order Recode U;R" dllb_mm "Date of Last Live Birth - Month R" dllb_yy "Date of Last Live Birth - Year R" precare "Month Prenatal Care Began RFP 668=f_mpcb R" precare_rec "Month Prenatal Care Began Recode RFP 668=f_mpcb R" mpcb "Month Prenatal Care Began RFP 669=f_mpcb_u U" mpcb_rec6 "Month Prenatal Care Began Recode 6 RFP 669=f_mpcb_u U" mpcb_rec5 "Month Prenatal Care Began Recode 5 RFP 669=f_mpcb_u U" uprevis "Number of Prenatal Visits U;R" previs_rec "Number of Prenatal Visits Recode U;R" apncu "Adequacy of Prenatal Care Utilization Index RFP 668=f_mpcb R" wtgain "Weight Gain RFP 648=f_wtgain U;R" wtgain_rec "Weight Gain Recode RFP 648=f_wtgain U;R" u_apncu "Adequacy of Prenatal Care Utilization Index RFP 669=f_mpcb_u U" dfpc_imp "Day of Date First Prenatal Care Imputed R" cig_1 "Cigarettes 1st Trimester RFP 575=f_tobaco R" cig_2 "Cigarettes 2nd Trimester RFP 575=f_tobaco R" cig_3 "Cigarettes 3rd Trimester RFP 575=f_tobaco R" tobuse "Tobacco Use RFP 667=f_tobac U" cigs "Cigarettes Per Day U" cig_rec6 "Cigarettes Recode U" cig_rec "Cigarettes Recode RFP 575=f_tobaco R" rf_diab "Prepregnancy Diabetes RFP 582=f_rf_diab R" rf_gest "Gestational Diabetes RFP 583=f_rf_gdiab R" rf_phyp "Prepregnancy Hypertension RFP 584=f_rf_phyper R" rf_ghyp "Gestational Hypertension RFP 585=f_rf_ghyper R" rf_eclam "Eclampsia RFP 586=rf_eclamp R" rf_ppterm "Previous Preterm Birth RFP 587=f_rf_ppb R" rf_ppoutc "Poor Pregnancy Outcome RFP 588=f_rf_ppo R" rf_cesar "Previous Cesarean Deliveries RFP 593=f_rf_cesar R" rf_cesarn "Number of Previous Cesarean Deliveries RFP 594=f_rf_ncesar R" urf_diab "Diabetes RFP 684=f_urf_diabetes U;R" urf_chyper "Chronic Hypertension RFP 688=f_urf_chyper U;R" urf_phyper "Pregnancy Associated Hypertension RFP 689=f_urf_phyper U;R" urf_eclam "Eclampsia RFP 690=f_urf_eclamp U;R" op_cerv "Cervical Cerclage RFP 601=f_ob_cervic R" op_tocol "Tocolysis RFP 602=f_ob_toco R" op_ecvs "Successful External Cephalic Version RFP 603=f_ob_succ R" op_ecvf "Failed External Cephalic Version RFP 604=f_ob_fail R" uop_induc "Induction of labor U;R" uop_tocol "Tocolysis U;R" op_ruptr "Premature Rupture of Membrane RFP 605=f_ol_rupture R" op_precip "Precipitous Labor RFP 606=f_ol_precip R" op_prol "Prolonged Labor RFP 607=f_ol_prolong R" ld_indl "Induction of Labor RFP 608=f_ld_induct R" ld_augm "Augmentation of Labor RFP 609=f_ld_augment R" ld_nvpr "Non-Vertex Presentation RFP 610=f_ld_nvrtx R" ld_ster "Steroids RFP 611=f_ld_steroids R" ld_anti "Antibiotics RFP 612=f_ld_antibio R" ld_chor "Chorioamnionitis RFP 613=f_ld_chorio R" ld_mecs "Meconium Staining RFP 614=f_ld_mecon R" ld_fint "Fetal Intolerance RFP 615=f_ld_fintol R" ld_anes "Anesthesia RFP 616=f_ld_anesth R" uld_meco "Meconium RFP 712=f_uld_meconium U;R" uld_precip "Precipitous labor RFP 718=f_uld_precip U;R" uld_breech "Breech RFP 721=f_uld_breech U;R" me_attf "Attempted Forceps RFP 617=f_md_attfor R" me_attv "Attempted Vacuum RFP 618=f_md_attvac R" me_pres "Fetal Presentation RFP 619=f_md_present R" me_rout "Route & Method of Delivery RFP 620=f_md_route R" me_trial "Trial of Labor Attempted RFP 621=f_md_trial R" ume_vag "Vaginal RFP 730=f_u_vag U" ume_vbac "Vaginal after C-Section RFP 731=f_u_vbac U" ume_primc "Primary C-Section RFP 732=f_u_primc U" ume_repec "Repeat C-Section RFP 733=f_u_repec U" ume_forcp "Forceps RFP 734=f_u_forcp U;R" ume_vac "Vacuum RFP 735=f_u_vac U;R" rdmeth_rec "Delivery Method Recode (Revised) R" udmeth_rec "Delivery Method Recode (Unrevised) U" dmeth_rec "Delivery Method Recode U;R" attend "Attendant U;R" apgar5 "Five Minute Apgar Score RFP 574=f_apgar5 U;R" apgar5r "Five Minute Apgar Recode RFP 574=f_apgar5 U;R" dplural "Plurality U;R" imp_plur "Plurality Imputed U;R" sex "Sex of Infant 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. RFP 573=f_clinest 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" ab_aven1 "Assisted Ventilation RFP 628=f_ab_vent R" ab_aven6 "Assisted Ventilation >6 hrs RFP 629=f_ab_vent6 R" ab_nicu "Admission to NICU RFP 630=f_ab_nicu R" ab_surf "Surfactant RFP 631=f_ab_surfac R" ab_anti "Antibiotics RFP 632=f_ab_antibio R" ab_seiz "Seizures RFP 633=f_ab_seiz R" ab_binj "Birth Injury RFP 634=f_ab_inj R" ca_anen "Anencephaly RFP 635=f_ca_anen R" ca_mnsb "Meningomyelocele/Spina Bifida RFP 636=f_ca_menin R" ca_cchd "Cyanotic Congenital Heart Disease RFP 637=f_ca_heart R" ca_cdh "Congenital Diaphragmatic Hernia RFP 638=f_ca_hernia R" ca_omph "Omphalocele RFP 639=f_ca_ompha R" ca_gast "Gastroschisis RFP 640=f_ca_gastro R" ca_limb "Limb Reduction Defect RFP 641=f_ca_limb R" ca_cleft "Cleft Lip w/ or w/o Cleft Palate RFP 642=f_ca_cleflp R" ca_clpal "Cleft Palate alone RFP 643=f_ca_cleft R" ca_down "Downs Syndrome RFP 644=f_ca_downs R" ca_disor "Suspected Chromosonal Disorder RFP 645=f_ca_chrom R" ca_hypo "Hypospadias RFP 646=f_ca_hypos R" uca_anen "Anencephalus RFP 752=f_uca_anen U;R" uca_spina "Spina bifida/Meningocele RFP 753=f_uca_spina U;R" uca_ompha "Omphalocele/Gastroschisis RFP 761=f_uca_omphalo U;R" uca_cleftlp "Cleft Lip/Palate RFP 766=f_uca_cleftlp U;R" uca_downs "Down Syndrome RFP 771=f_uca_downs U;R" f_morigin "Origin of Mother (umhisp" f_forigin "Origin of Father (ufhisp" f_meduc "Education of Mother (meduc) R" f_clinest "Clinical Estimate of Gestation (estgest) U;R" f_apgar5 "5 - minute Apgar (apgar5" f_tobaco "Tobacco use (cig_1" f_rf_pdiab "Prepregnancy Diabetes (rf_diab) R" f_rf_gdiab "Gestational Diabetes (rf_gest) R" f_rf_phyper "Prepregnancy Hypertension (rf_phyp) R" f_rf_ghyper "Gestational Hypertension (rf_ghyp) R" f_rf_eclamp "Eclampsia (rf_eclam) R" f_rf_ppb "Previous Preterm Birth (rf_ppterm) R" f_rf_ppo "Poor Pregnancy Outcomes (rf_ppoutc) R" f_rf_cesar "Previous Cesarean (rf_cesar) R" f_rf_ncesar "Number of Previous Cesareans (rf_cesarn) R" f_ob_cervic "Cervical Cerelage (op_cerv) R" f_ob_toco "Tocolysis (op_tocol) R" f_ob_succ "Successful External Cephalic Version (op_ecvs) R" f_ob_fail "Failed External Cephalic Version (op_ecvf) R" f_ol_rupture "Premature Rupture of the Membranes (op_ruptr) R" f_ol_precip "Precipitous Labor (op_precip) R" f_ol_prolong "Prolonged Labor (op_prol) R" f_ld_induct "Induction of Labor (ld_indl) R" f_ld_augment "Augmentation of Labor (ld_augm) R" f_ld_nvrtx "Non-Vertex Presentation (ld_nvpr) R" f_ld_steroids "Steroids (ld_ster) R" f_ld_antibio "Antibiotics (ld_anti) R" f_ld_chorio "Chorioamnionitis (ld_chor) R" f_ld_mecon "Meconium Staining (ld_mecs) R" f_ld_fintol "Fetal Intolerance (ld_fint) R" f_ld_anesth "Anesthesia (ld_anes) R" f_md_attfor "Attempted Forceps (me_attf) R" f_md_attvac "Attempted Vacuum (me_attv) R" f_md_present "Fetal Presentation (me_pres) R" f_md_route "Fetal Route and Method of Delivery (me_rout) R" f_md_trial "Trial of Labor Attempted (me_trial) R" f_ab_vent "Assisted Ventilation (ab_aven1) R" f_ab_vent6 "Assisted Ventilation >6hrs (ab_aven6) R" f_ab_nicu "Admission to NICU (ab_nicu) R" f_ab_surfac "Surfactant (ab_surf) R" f_ab_antibio "Antibiotics (ab_anti) R" f_ab_seiz "Seizures (ab_seiz) R" f_ab_inj "Birth Injury (ab_binj) R" f_ca_anen "Anencephaly (ca_anen) R" f_ca_menin "Meningomyelocele/Spina Bifida (ca_mnsb) R" f_ca_heart "Cyanotic Congenital Heart Disease (ca_cchd) R" f_ca_hernia "Congenital Diaphragmatic Hernia (ca_cdh) R" f_ca_ompha "Omphalocele (ca_omph) R" f_ca_gastro "Gastroschisis (ca_gast) R" f_ca_limb "Limb Reduction Defect (ca_limb) R" f_ca_cleftlp "Cleft Lip w/ or w/o Cleft Palate (ca_cleft) R" f_ca_cleft "Cleft Palate alone (ca_clpal) R" f_ca_downs "Downs Syndrome (ca_down) R" f_ca_chrom "Suspected Chromosonal Disorder (ca_disor) R" f_ca_hypos "Hypospadias (ca_hypo) R" f_med "Mother's Education (dmeduc" f_wtgain "Weight gain (wtgain" f_tobac "Tobacco use (tobuse) U" f_mpcb "Month Prenatal Care Began (precare" f_mpcb_u "Month Prenatal Care Began (mpcb" f_urf_diabetes "Diabetes (urf_diab) U" f_urf_chyper "Chronic Hypertension (urf_chyper) U" f_urf_phyper "Pregnancy Associated Hypertension (urf_phyper) U" f_urf_eclamp "Eclampsia (urf_eclam) U" f_uob_induct "Induction of labor U" f_uob_stimul "Stimulation of labor U" f_uob_tocol "Tocolysis U" f_uld_meconium "Meconium (uld_mecs) U" f_uld_precip "Precipitous labor (uld_precip) U" f_uld_breech "Breech (uld_breech) U" f_u_vag "Vaginal (ume_vag) U" f_u_vbac "Vaginal after C-Section (ume_vbac) U" f_u_primc "Primary C-Section (ume_primc) U" f_u_repec "Repeat C-Section (ume_repec) U" f_u_forcp "Forceps (ume_forcp) U" f_u_vac "Vacuum (ume_vac) U" f_uca_anen "Anencephalus (uca_anen) U" f_uca_spina "Spina bifida/Meningocele (uca_spina) U" f_uca_omphalo "Omphalocele/Gastroschisis (uca_ompha) U" f_uca_cleftlp "Cleft Lip/Palate (uca_cleftlp) U" f_uca_downs "Down Syndrome (ucs_downs) U" . list. execute. save outfile = 'c:\natlterr2007.sav'. *Copyright 2012 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.