*This program reads the 2015 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 Thu Oct 20 13:58:09 EDT 2016 *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:\natlterr2015.sps". *and choose to RUN ALL file handle natlterr2015 /name="c:\homes\data\natality\ftp.cdc.gov\pub\Health_Statistics\NCHS\Datasets\DVS\natality\Nat2015ps.dat" . data list file=natlterr2015 / dob_yy 9-12 dob_mm 13-14 dob_tt 19-22 dob_wk 23 bfacil 32 f_facility 33 bfacil3 50 mage_impflg 73 mage_repflg 74 mager 75-76 mager14 77-78 mager9 79 mbstate_rec 84 restatus 104 mrace31 105-106 mrace6 107-108 mrace15 108-109 mbrace 110 mraceimp 111-111 (a) mhisp_r 115 f_mhisp 116 mracehisp 117 mar_p 119-119 (a) dmar 120 mar_imp 121 f_mar_p 123 meduc 124 f_meduc 126 fagerpt_flg 142 fagecomb 147-148 fagerec11 149-150 frace31 151-152 frace6 153 frace15 154-155 fbrace 156 fhisp_r 160 f_fhisp 161 fracehisp 162 feduc 163 priorlive 171-172 priordead 173-174 priorterm 175-176 lbo_rec 179 tbo_rec 182 illb_r 198-200 illb_r11 201-202 ilop_r 206-208 ilop_r11 209-210 ilp_r 214-216 ilp_r11 217-218 precare 224-225 f_mpcb 226 precare5 227 previs 238-239 previs_rec 242-243 f_tpcv 244 wic 251-251 (a) f_wic 252 cig_0 253-254 cig_1 255-256 cig_2 257-258 cig_3 259-260 cig0_r 261 cig1_r 262 cig2_r 263 cig3_r 264 f_cigs_0 265 f_cigs_1 266 f_cigs_2 267 f_cigs_3 268 cig_rec 269-269 (a) f_tobaco 270 m_ht_in 280-281 f_m_ht 282 bmi 283-286 (1) bmi_r 287 pwgt_r 292-294 f_pwgt 295 dwgt_r 299-301 f_dwgt 303 wtgain 304-305 wtgain_rec 306 f_wtgain 307 rf_pdiab 313-313 (a) rf_gdiab 314-314 (a) rf_phype 315-315 (a) rf_ghype 316-316 (a) rf_ehype 317-317 (a) rf_ppterm 318-318 (a) f_rf_pdiab 319 f_rf_gdiab 320 f_rf_phyper 321 f_rf_ghyper 322 f_rf_eclamp 323 f_rf_ppb 324 rf_inftr 325-325 (a) rf_fedrg 326-326 (a) rf_artec 327-327 (a) f_rf_inf_drg 329 f_rf_inf_art 330 rf_cesar 331-331 (a) rf_cesarn 332-333 f_rf_cesar 335 f_rf_ncesar 336 no_risks 337 ip_gon 343-343 (a) ip_syph 344-344 (a) ip_chlam 345-345 (a) ip_hepatb 346-346 (a) ip_hepatc 347-347 (a) f_ip_gonor 348 f_ip_syph 349 f_ip_chlam 350 f_ip_hepatb 351 f_ip_hepatc 352 no_infec 353 ob_ecvs 360-360 (a) ob_ecvf 361-361 (a) f_ob_succ 363 f_ob_fail 364 ld_indl 383-383 (a) ld_augm 384-384 (a) ld_ster 385-385 (a) ld_antb 386-386 (a) ld_chor 387-387 (a) ld_anes 388-388 (a) f_ld_indl 389 f_ld_augm 390 f_ld_ster 391 f_ld_antb 392 f_ld_chor 393 f_ld_anes 394 no_lbrdlv 395 me_pres 401-401 (a) me_rout 402-402 (a) me_trial 403-403 (a) f_me_pres 404 f_me_rout 405 f_me_trial 406 rdmeth_rec 407 dmeth_rec 408 f_dmeth_rec 409 mm_mtr 415-415 (a) mm_plac 416-416 (a) mm_rupt 417-417 (a) mm_uhyst 418-418 (a) mm_aicu 419-419 (a) f_mm_mtr 421 f_mm_ 422 f_mm_rupt 423 f_mm_uhyst 424 f_mm_aicu 425 no_mmorb 427 attend 433 mtran 434-434 (a) pay 435 pay_rec 436 f_pay 437 f_pay_rec 438 apgar5 444-445 apgar5r 446 f_apgar5 447 apgar10 448-449 apgar10r 450 dplural 454 imp_plur 456 setorder_r 459 sex 475-475 (a) imp_sex 476 dlmp_mm 477-478 dlmp_yy 481-484 compgst_imp 488 obgest_flg 489 combgest 490-491 gestrec10 492-493 gestrec3 494 lmpused 498 oegest_comb 499-500 oegest_r10 501-502 oegest_r3 503 dbwt 504-507 bwtr12 509-510 bwtr4 511 ab_aven1 517-517 (a) ab_aven6 518-518 (a) ab_nicu 519-519 (a) ab_surf 520-520 (a) ab_anti 521-521 (a) ab_seiz 522-522 (a) f_ab_vent 524 f_ab_vent6 525 f_ab_nicu 526 f_ab_surfac 527 f_ab_antibio 528 f_ab_seiz 529 no_abnorm 531 ca_anen 537-537 (a) ca_mnsb 538-538 (a) ca_cchd 539-539 (a) ca_cdh 540-540 (a) ca_omph 541-541 (a) ca_gast 542-542 (a) f_ca_anen 543 f_ca_menin 544 f_ca_heart 545 f_ca_hernia 546 f_ca_ompha 547 f_ca_gastro 548 ca_limb 549-549 (a) ca_cleft 550-550 (a) ca_clpal 551-551 (a) ca_downs 552-552 (a) ca_disor 553-553 (a) ca_hypo 554-554 (a) f_ca_limb 555 f_ca_cleftlp 556 f_ca_cleft 557 f_ca_downs 558 f_ca_chrom 559 f_ca_hypos 560 no_congen 561 itran 567-567 (a) ilive 568-568 (a) bfed 569-569 (a) f_bfed 570 ubfacil 1330 urf_diab 1331 urf_chyper 1332 urf_phyper 1333 urf_eclam 1334 ume_forcep 1335 ume_vac 1336 uop_induc 1337 uld_breech 1338 uca_anen 1340 uca_spina 1341 uca_ompha 1342 uca_cleftlp 1343 uca_hernia 1344 uca_downs 1345 . * See the codebook for more detailed variable descriptions. variable labels dob_yy "Birth Year 2015 Year of birth" dob_mm "Birth Month 01 January" dob_tt "Time of Birth 0000-2359 Time of Birth" dob_wk "Birth Day of Week 1 Sunday" bfacil "Birth Place 1 Hospital" f_facility "Reporting Flag for Birth Place 0 Non-Reporting" bfacil3 "Facility Recode 1 In Hospital" mage_impflg "Mother's Age Imputed Blank Age not imputed" mage_repflg "Reported Age of Mother Used Flag Blank Reported age not used" mager "Mother's Single Years of Age 12 10 -- 12 years" mager14 "Mother's Age Recode 14 01 Under 15 Years" mager9 "Mother's Age Recode 9 1 Under 15 years" mbstate_rec "Mother's Nativity 1 Born in the U.S. (50 US States)" restatus "Residence Status" mrace31 "Mother's Race Recode 31" mrace6 "Mother's Race Recode 6" mrace15 "Mother's Race Recode 15" mbrace "Bridged Race Mother" mraceimp "Mother's Race Imputed Flag Blank Mother's race not imputed" mhisp_r "Mother's Hispanic Origin Recode 0 Non-Hispanic" f_mhisp "Reporting Flag for Mother's Origin 0 Non-Reporting" mracehisp "Mother's Race/Hispanic Origin 1 Non-Hispanic White (only)" mar_p "Paternity Acknowledged Y Yes" dmar "Marital Status" mar_imp "Mother's Marital Status Imputed Blank Marital Status not imputed" f_mar_p "Reporting Flag for Paternity Acknowledged 0 Non-Reporting" meduc "Mother's Education 1 8th grade or less" f_meduc "Reporting Flag for Education of Mother 0 Non-Reporting" fagerpt_flg "Father's Reported Age Used Blank Father's reported age not u" fagecomb "Father's Combined Age (Revised) 09-98 Father's combined age in ye" fagerec11 "Father's Age Recode 11 01 Under 15 years" frace31 "Father's Race Recode 31 01 White (only) [only one race" frace6 "Father's Race Recode 6 1 White (only)" frace15 "Father's Race Recode 15 01 White (only)" fbrace "Bridged Race Father 1 White" fhisp_r "Father's Hispanic Origin Recode 0 Non-Hispanic" f_fhisp "Reporting Flag for Father's Origin 0 Non-Reporting" fracehisp "Father's Race/Hispanic Origin 1 Non-Hispanic White (only)" feduc "Father's Education 1 8th grade or less" priorlive "Prior Births Now Living 00-30 Number of children still li" priordead "Prior Births Now Dead 00-30 Number of children dead fro" priorterm "Prior Other Terminations 00-30 Number other terminations" lbo_rec "Live Birth Order Recode 1-7 Number of live birth order." tbo_rec "Total Birth Order Recode 1-7 Number of total birth order" illb_r "Interval Since Last Live Birth Recode 000-003 Plural delivery" illb_r11 "Interval Since Last Live Birth Recode 11 00 Zero to 3 months (plural de" ilop_r "Interval Since Last Other Pregnancy Recode 000-003 Plural delivery" ilop_r11 "Interval Since Last Other Pregnancy Recode 11 00 Zero to 3 months (plural de" ilp_r "Interval Since Last Pregnancy Recode 000-003 Plural delivery" ilp_r11 "Interval Since Last Pregnancy Recode 11 00 Zero to 3 months (plural de" precare "Month Prenatal Care Began 00 No prenatal care" f_mpcb "Reporting Flag for Month Prenatal Care Began 0 Non-Reporting" precare5 "Month Prenatal Care Began Recode 1 1st to 3rd month" previs "Number of Prenatal Visits (Revised only) 00-98 Number of prenatal visits" previs_rec "Number of Prenatal Visits Recode 01 No visits" f_tpcv "Reporting Flag for Total Prenatal Care Visits 0 Non-Reporting" wic "WIC Y Yes" f_wic "Reporting Flag for WIC 0 Non-Reporting" cig_0 "Cigarettes Before Pregnancy 00-97 Number of cigarettes daily" cig_1 "Cigarettes 1st Trimester 00-97 Number of cigarettes daily" cig_2 "Cigarettes 2nd Trimester 00-97 Number of cigarettes daily" cig_3 "Cigarettes 3rd Trimester 00-97 Number of cigarettes daily" cig0_r "Cigarettes Before Pregnancy Recode 0 Nonsmoker" cig1_r "Cigarettes 1st Trimester Recode 0 Nonsmoker" cig2_r "Cigarettes 2nd Trimester Recode 0 Nonsmoker" cig3_r "Cigarettes 3rd Trimester Recode 0 Nonsmoker" f_cigs_0 "Reporting Flag for Cigarettes before Pregnancy 0 Non-Reporting" f_cigs_1 "Reporting Flag for Cigarettes 1st Trimester 0 Non-Reporting" f_cigs_2 "Reporting Flag for Cigarettes 2nd Trimester 0 Non-Reporting" f_cigs_3 "Reporting Flag for Cigarettes 3rd Trimester 0 Non-Reporting" cig_rec "Cigarette Recode (Revised) Y Yes" f_tobaco "Reporting Flag for Tobacco use 0 Non-Reporting" m_ht_in "Mother's Height in Total Inches 30-78 Height in inches" f_m_ht "Reporting Flag for Mother's Height 0 Non-Reporting" bmi "Body Mass Index 13.0-69.9 Body Mass Index" bmi_r "Body Mass Index Recode 1 Underweight <18.5" pwgt_r "Pre-pregnancy Weight Recode 075-375 Weight in pounds" f_pwgt "Reporting Flag for Pre-pregnancy Weight 0 Non-Reporting" dwgt_r "Delivery Weight Recode 100-400 Weight in pounds" f_dwgt "Reporting Flag for Delivery Weight 0 Non-Reporting" wtgain "Weight Gain 00-97 Weight gain in pounds" wtgain_rec "Weight Gain Recode 1 Less than 11 pounds" f_wtgain "Reporting Flag for Weight Gain 0 Non-Reporting" rf_pdiab "Pre-pregnancy Diabetes Y Yes" rf_gdiab "Gestational Diabetes Y Yes" rf_phype "Pre-pregnancy Hypertension Y Yes" rf_ghype "Gestational Hypertension Y Yes" rf_ehype "Hypertension Eclampsia Y Yes" rf_ppterm "Previous Preterm Birth Y Yes" f_rf_pdiab "Reporting Flag for Pre-pregnancy Diabetes 0 Non-Reporting" f_rf_gdiab "Reporting Flag for Gestational Diabetes 0 Non-Reporting" f_rf_phyper "Reporting Flag for Pre-pregnancy Hypertension 0 Non-Reporting" f_rf_ghyper "Reporting Flag for Gestational Hypertension 0 Non-Reporting" f_rf_eclamp "Reporting Flag for Hypertension Eclampsia 0 Non-Reporting" f_rf_ppb "Reporting Flag for Previous Preterm Birth 0 Non-Reporting" rf_inftr "Infertility Treatment Used Y Yes" rf_fedrg "Fertility Enhancing Drugs Y Yes" rf_artec "Asst. Reproductive Technology Y Yes" f_rf_inf_drg "Reporting Flag for Fertility Enhance Drugs 0 Non-Reporting" f_rf_inf_art "Reporting Flag for Reproductive Technology 0 Non-Reporting" rf_cesar "Previous Cesarean Y Yes" rf_cesarn "Number of Previous Cesareans 00 None" f_rf_cesar "Reporting Flag for Previous Cesarean 0 Non-Reporting" f_rf_ncesar "Reporting Flag for Number of Previous Cesareans 0 Non-Reporting" no_risks "No Risk Factors Reported 1 True" ip_gon "Gonorrhea Y Yes" ip_syph "Syphilis Y Yes" ip_chlam "Chlamydia Y Yes" ip_hepatb "Hepatitis B Y Yes" ip_hepatc "Hepatitis C Y Yes" f_ip_gonor "Reporting Flag for Gonorrhea 0 Non-Reporting" f_ip_syph "Reporting Flag for Syphilis 0 Non-Reporting" f_ip_chlam "Reporting Flag for Chlamydia 0 Non-Reporting" f_ip_hepatb "Reporting Flag for Hepatitis B 0 Non-Reporting" f_ip_hepatc "Reporting Flag for Hepatitis C 0 Non-Reporting" no_infec "No Infections Reported 1 True" ob_ecvs "Successful External Cephalic Version Y Yes" ob_ecvf "Failed External Cephalic Version Y Yes" f_ob_succ "Reporting Flag for Successful External Cephalic Version0 Non-Reporting" f_ob_fail "Reporting Flag for Failed External Cephalic Version 0 Non-Reporting" ld_indl "Induction of Labor Y Yes" ld_augm "Augmentation of Labor Y Yes" ld_ster "Steroids Y Yes" ld_antb "Antibiotics Y Yes" ld_chor "Chorioamnionitis Y Yes" ld_anes "Anesthesia Y Yes" f_ld_indl "Reporting Flag for Induction of Labor 0 Non-Reporting" f_ld_augm "Reporting Flag for Augmentation of Labor 0 Non-Reporting" f_ld_ster "Reporting Flag for Steroids 0 Non-Reporting" f_ld_antb "Reporting Flag for Antibiotics 0 Non-Reporting" f_ld_chor "Reporting Flag for Chorioamnionitis 0 Non-Reporting" f_ld_anes "Reporting Flag for Anesthesia 0 Non-Reporting" no_lbrdlv "No Characteristics of Labor Reported 1 True" me_pres "Fetal Presentation at Delivery 1 Cephalic" me_rout "Final Route & Method of Delivery 1 Spontaneous" me_trial "Trial of Labor Attempted (if cesarean) Y Yes" f_me_pres "Reporting Flag for Fetal Presentation 0 Non-Reporting" f_me_rout "Reporting Flag for Final Route and Method of Deliver 0 Non-Reporting" f_me_trial "Reporting Flag for Trial of Labor Attempted 0 Non-Reporting" rdmeth_rec "Delivery Method Recode (revised only) 1 Vaginal (excludes vaginal a" dmeth_rec "Delivery Method Recode Combined 1 Vaginal" f_dmeth_rec "Reporting Flag for Method of Delivery Recode 0 Non-Reporting" mm_mtr "Maternal Transfusion Y Yes" mm_plac "Perineal Laceration Y Yes" mm_rupt "Ruptured Uterus Y Yes" mm_uhyst "Unplanned Hysterectomy Y Yes" mm_aicu "Admit to Intensive Care Y Yes" f_mm_mtr "Reporting Flag for Maternal Transfusion 0 Non-Reporting" f_mm_ "PLAC Reporting Flag for Perineal Laceration 0 Non-Reporting" f_mm_rupt "Reporting Flag for Ruptured Uterus 0 Non-Reporting" f_mm_uhyst "Reporting Flag for Unplanned Hysterectomy 0 Non-Reporting" f_mm_aicu "Reporting Flag for Admission to Intensive Care 0 Non-Reporting" no_mmorb "No Maternal Morbidity Reported 1 True" attend "Attendant at Birth 1 Doctor of Medicine (MD)" mtran "Mother Transferred Y Yes" pay "Payment Source for Delivery 1 Medicaid" pay_rec "Payment Recode 1 Medicaid" f_pay "Reporting Flag for Source of Payment 0 Non-Reporting" f_pay_rec "Reporting Flag for Payment Recode 0 Non-Reporting" apgar5 "Five Minute APGAR Score 00-10 A score of 0-10" apgar5r "Five Minute APGAR Recode 1 A score of 0-3" f_apgar5 "Reporting Flag for Five minute APGAR 0 Non-Reporting" apgar10 "Ten Minute APGAR Score 00-10 A score of 0-10" apgar10r "Ten Minute APGAR Recode 1 A score of 0-3" dplural "Plurality Recode 1 Single" imp_plur "Plurality Imputed Blank Plurality is imputed" setorder_r "Set Order Recode 1 1st" sex "Sex of Infant M Male" imp_sex "Imputed Sex Blank Infant Sex not Imputed" dlmp_mm "Last Normal Menses Month 01 January" dlmp_yy "Last Normal Menses Year nnnn Year of last normal menses" compgst_imp "Combined Gestation Imputation Flag Blank Combined Gestation is not i" obgest_flg "Obstetric Estimate of Gestation Used Flag Blank Obstetric Estimate is not u" combgest "Combined Gestation -- Detail in Weeks 17-47 17th through 47th week of" gestrec10 "Combined Gestation Recode 10 01 Under 20 weeks" gestrec3 "Combined Gestation Recode 3 1 Under 37 weeks" lmpused "Combined Gestation Used Flag Blank Combined gestation not used" oegest_comb "Obstetric Estimate Edited 17-47 Weeks of gestation" oegest_r10 "Obstetric Estimate Recode10 01 Under 20 weeks" oegest_r3 "Obstetric Estimate Recode 3 1 Under 37 weeks" dbwt "Birth Weight -- Detail in Grams (Edited) 0227-8165 Number of grams" bwtr12 "Birth Weight Recode 12 01 0227 - 0499 grams" bwtr4 "Birth Weight Recode 4 1 0227 - 1499 grams" ab_aven1 "Assisted Ventilation (immediately) Y Yes" ab_aven6 "Assisted Ventilation > 6 hrs Y Yes" ab_nicu "Admission to NICU Y Yes" ab_surf "Surfactant Y Yes" ab_anti "Antibiotics for Newborn Y Yes" ab_seiz "Seizures Y Yes" f_ab_vent "Reporting Flag for Assisted Ventilation (immediately) 0 Non-Reporting" f_ab_vent6 "Reporting Flag for Assisted Ventilation >6 hrs 0 Non-Reporting" f_ab_nicu "Reporting Flag for Admission to NICU 0 Non-Reporting" f_ab_surfac "Reporting Flag for Surfactant 0 Non-Reporting" f_ab_antibio "Reporting Flag for Antibiotics 0 Non-Reporting" f_ab_seiz "Reporting Flag for Seizures 0 Non-Reporting" no_abnorm "No Abnormal Conditions Checked 1 True" ca_anen "Anencephaly Y Yes" ca_mnsb "Meningomyelocele / Spina Bifida Y Yes" ca_cchd "Cyanotic Congenital Heart Disease Y Yes" ca_cdh "Congenital Diaphragmatic Hernia Y Yes" ca_omph "Omphalocele Y Yes" ca_gast "Gastroschisis Y Yes" f_ca_anen "Reporting Flag for Anencephaly 0 Non-Reporting" f_ca_menin "Reporting Flag for Meningomyelocele/Spina Bifida 0 Non-Reporting" f_ca_heart "Reporting Flag for Cyanotic Congenital Heart Disease 0 Non-Reporting" f_ca_hernia "Reporting Flag for Congenital Diaphragmatic Hernia 0 Non-Reporting" f_ca_ompha "Reporting Flag for Omphalocele 0 Non-Reporting" f_ca_gastro "Reporting Flag for Gastroschisis 0 Non-Reporting" ca_limb "Limb Reduction Defect Y Yes" ca_cleft "Cleft Lip w/ or w/o Cleft Palate Y Yes" ca_clpal "Cleft Palate alone Y Yes" ca_downs "Down Syndrome C Confirmed" ca_disor "Suspected Chromosomal Disorder C Confirmed" ca_hypo "Hypospadias Y Yes" f_ca_limb "Reporting Flag for Limb Reduction Defect 0 Non-Reporting" f_ca_cleftlp "Reporting Flag for Cleft Lip with or without Cleft Palate0 Non-Reporting" f_ca_cleft "Reporting Flag for Cleft Plate Alone 0 Non-Reporting" f_ca_downs "Reporting Flag for Down Syndrome 0 Non-Reporting" f_ca_chrom "Reporting Flag for Suspected Chromosomal Disorder 0 Non-Reporting" f_ca_hypos "Reporting Flag for Hypospadias 0 Non-Reporting" no_congen "No Congenital Anomalies Checked 1 True" itran "Infant Transferred Y Yes" ilive "Infant Living at Time of Report Y Yes" bfed "Infant Breastfed at Discharge Y Yes" f_bfed "Reporting Flag for Breastfed at Discharge 0 Non-Reporting" ubfacil "Birth Place 1 Hospital" urf_diab "Diabetes 1 Yes" urf_chyper "Chronic Hypertension 1 Yes" urf_phyper "Pregnancy Associated Hypertension 1 Yes" urf_eclam "Eclampsia 1 Yes" ume_forcep "Forceps 1 Yes" ume_vac "Vacuum 1 Yes" uop_induc "Induction of Labor 1 Yes" uld_breech "Breech 1 Yes" uca_anen "Anencephalus 1 Anomaly reported" uca_spina "Spina Bifida / Meningocele 1 Anomaly reported" uca_ompha "Omphalocele / Gastroschisis 1 Anomaly reported" uca_cleftlp "Cleft Lip / Palate 1 Anomaly reported" uca_hernia "Diaphragmatic Hernia 1 Anomaly reported" uca_downs "Down Syndrome 1 Anomaly reported" . list. execute. save outfile = 'c:\natlterr2015.sav'. *Copyright 2016 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.