*This program reads the 1987 *U.S. Numerator Linked Birth Infant Death Birth Cohort Data 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 Wed Nov 19 11:15:18 EST 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:\linkco1987us_num.sps". *and choose to RUN ALL file handle linkco1987us_num /name="c:\homes\data\lbid\ftp.cdc.gov\pub\Health_Statistics\NCHS\Datasets\DVS\cohortlinkedus\LinkCO87USnum.dat.bz2" . data list file=linkco1987us_num / matchs 1 datayear 2-5 rectype 10 resstatb 11 censtatebo 13-14 regnoccb 12 estatebo 15-16 divoccb 13 bostate 17-21 cntyoccb 17-21 (a) regnresb 22 divresb 23 censtatebr 23-24 estatebr 25-26 brstate 27-28 cntyresb 27-31 (a) cityresb 32-34 (a) crace 36 crace3 37 csex 38 dgestat 39-40 gestat10 41-42 dbirwt 43-46 birwt14 47-48 birwt3 49 dplural 50 omaps 51-52 fmaps 53-54 origm 55-56 mrace 57 dmage 58-59 mage12 60-61 dmeduc 62-63 meduc6 64-65 dmar 65 mplbir 66-67 origf 68-69 frace 70 dfage 71-72 dfeduc 73-74 disllb 75-77 outcome 76 dterm 77-79 mpcb 78-79 (a) mpcb6 80 nprevis 81-82 dtotord 83-84 totord9 85 dlivord 86-87 livord9 88 pldel 89 birattnd 90 dthyr 194-197 rectyped 198 resstatd 199 regnoccd 200 divoccd 201 censtatedo 201-202 estatedo 203-204 dostate 205-206 cntyoccd 205-209 (a) regnresd 210 divresd 211 censtatedr 211-212 estatedr 213-214 drstate 215-216 cntyresd 215-219 (a) cityresd 220-222 (a) ager5 223 ager76 224-225 ager38 226-227 hospd 228 autopsy 229 accidpl 230 ucod 231-234 (a) ucodr61 235-236 eanum 238-239 econdp_1 240 econds_1 241-241 (a) enicon_1 242-245 (a) eniflag_1 246 econdp_2 247 econds_2 248-248 (a) enicon_2 249-252 (a) eniflag_2 253 econdp_3 254 econds_3 255-255 (a) enicon_3 256-259 (a) eniflag_3 260 econdp_4 261 econds_4 262-262 (a) enicon_4 263-266 (a) eniflag_4 267 econdp_5 268 econds_5 269-269 (a) enicon_5 270-273 (a) eniflag_5 274 econdp_6 275 econds_6 276-276 (a) enicon_6 277-280 (a) eniflag_6 281 econdp_7 282 econds_7 283-283 (a) enicon_7 284-287 (a) eniflag_7 288 econdp_8 289 econds_8 290-290 (a) enicon_8 291-294 (a) eniflag_8 295 econdp_9 296 econds_9 297-297 (a) enicon_9 298-301 (a) eniflag_9 302 econdp_10 303 econds_10 304-304 (a) enicon_10 305-308 (a) eniflag_10 309 econdp_11 310 econds_11 311-311 (a) enicon_11 312-315 (a) eniflag_11 316 econdp_12 317 econds_12 318-318 (a) enicon_12 319-322 (a) eniflag_12 323 econdp_13 324 econds_13 325-325 (a) enicon_13 326-329 (a) eniflag_13 330 econdp_14 331 econds_14 332-332 (a) enicon_14 333-336 (a) eniflag_14 337 econdp_15 338 econds_15 339-339 (a) enicon_15 340-343 (a) eniflag_15 344 econdp_16 345 econds_16 346-346 (a) enicon_16 347-350 (a) eniflag_16 351 econdp_17 352 econds_17 353-353 (a) enicon_17 354-357 (a) eniflag_17 358 econdp_18 359 econds_18 360-360 (a) enicon_18 361-364 (a) eniflag_18 365 econdp_19 366 econds_19 367-367 (a) enicon_19 368-371 (a) eniflag_19 372 econdp_20 373 econds_20 374-374 (a) enicon_20 375-378 (a) eniflag_20 379 ranum 380-381 record_1 382-385 (a) rniflag_1 386 record_2 387-390 (a) rniflag_2 391 record_3 392-395 (a) rniflag_3 396 record_4 397-400 (a) rniflag_4 401 record_5 402-405 (a) rniflag_5 406 record_6 407-410 (a) rniflag_6 411 record_7 412-415 (a) rniflag_7 416 record_8 417-420 (a) rniflag_8 421 record_9 422-425 (a) rniflag_9 426 record_10 427-430 (a) rniflag_10 431 record_11 432-435 (a) rniflag_11 436 record_12 437-440 (a) rniflag_12 441 record_13 442-445 (a) rniflag_13 446 record_14 447-450 (a) rniflag_14 451 record_15 452-455 (a) rniflag_15 456 record_16 457-460 (a) rniflag_16 461 record_17 462-465 (a) rniflag_17 466 record_18 467-470 (a) rniflag_18 471 record_19 472-475 (a) rniflag_19 476 record_20 477-480 (a) rniflag_20 481 . * See the codebook for more detailed variable descriptions. variable labels matchs "Match Status" datayear "Year of Birth" rectype "Record type" resstatb "Resident Status - Birth" censtatebo "State of Occurrence - Birth (1960 Census State Code)" regnoccb "Region of Occurrence - Birth" estatebo "Expanded State of Occurrence - Birth" divoccb "Division of Occurrence - Birth" bostate "State of Occurrence - Birth (NCHS Codes)" cntyoccb "NCHS County of Occurence - Birth" regnresb "Region of Residence - Birth" divresb "Division of Residence - Birth" censtatebr "State of Residence - Birth (1960 Census State Code)" estatebr "Expanded State of Residence - Birth" brstate "State of Residence - Birth (NCHS Codes)" cntyresb "NCHS County of Residence - Birth" cityresb "City of Residence (NCHS Codes) - Birth" crace "Race of Child" crace3 "Race of Child Recode 3" csex "Sex of Child" dgestat "Gestation" gestat10 "Gestation Recode 10" dbirwt "Birthweight" birwt14 "Birthweight Recode 14" birwt3 "Birthweight Recode 3" dplural "Plurality" omaps "One Minute Apgar Score" fmaps "Five Minute Apgar Score" origm "Origin or Descent of Mother" mrace "Race of Mother" dmage "Age of Mother" mage12 "Age of Mother recode 12" dmeduc "Education of Mother Detail" meduc6 "Education of Mother Recode 6" dmar "Marital Status" mplbir "Mother's Place of Birth" origf "Origin or Descent of Father" frace "Race of Father" dfage "Age of Father" dfeduc "Education of Father" disllb "Interval since last live birth" outcome "Outcome of Last Pregnancy" dterm "Detail Interval Since Termination of Last Pregnancy" mpcb "Detail Month Prenatal Care began" mpcb6 "Month Prenatal Care began Recode 6" nprevis "Total Number of Prenatal Visits" dtotord "Total birth order" totord9 "Total birth order recode 9" dlivord "Detail Live birth order" livord9 "Live birth order Recode 9" pldel "Place of Delivery" birattnd "Attendant at birth" dthyr "Year of Death" rectyped "Record type" resstatd "Resident Status - Death" regnoccd "Region of Occurrence - Death" divoccd "Division of Occurrence - Death" censtatedo "State of Occurrence - Death (1960 Census State Code)" estatedo "Expanded State of Occurrence - Death" dostate "State of Occurrence - Death (NCHS Codes)" cntyoccd "NCHS County of Occurence - Death" regnresd "Region of Residence - Death" divresd "Division of Residence - Death" censtatedr "State of Residence - Death (1960 Census State Code)" estatedr "Expanded State of Residence - Death" drstate "State of Residence - Death (NCHS Codes)" cntyresd "County of Residence - Death (NCHS Codes)" cityresd "City of Residence - NCHS Codes - Death " ager5 "Infant Age Recode 5" ager76 "Infant Age Recode 76" ager38 "Infant Age Recode 38" hospd "Hospital and Patient Status" autopsy "Autopsy Performed" accidpl "Place of Accident for Causes E850-E869 and E880-E928" ucod "ICD Code (9th Revision)" ucodr61 "61 Infant Cause Recode" eanum "Number of Entity-Axis Conditions" econdp_1 "Part/line number on certificate 1" econds_1 "Sequence of condition within part/line 1" enicon_1 "Condition code 1 (ICD 9th Revision)" eniflag_1 "Nature of Injury Flag 1" econdp_2 "Part/line number on certificate 2" econds_2 "Sequence of condition within part/line 2" enicon_2 "Condition code 2 (ICD 9th Revision)" eniflag_2 "Nature of Injury Flag 2" econdp_3 "Part/line number on certificate 3" econds_3 "Sequence of condition within part/line 3" enicon_3 "Condition code 3 (ICD 9th Revision)" eniflag_3 "Nature of Injury Flag 3" econdp_4 "Part/line number on certificate 4" econds_4 "Sequence of condition within part/line 4" enicon_4 "Condition code 4 (ICD 9th Revision)" eniflag_4 "Nature of Injury Flag 4" econdp_5 "Part/line number on certificate 5" econds_5 "Sequence of condition within part/line 5" enicon_5 "Condition code 5 (ICD 9th Revision)" eniflag_5 "Nature of Injury Flag 5" econdp_6 "Part/line number on certificate 6" econds_6 "Sequence of condition within part/line 6" enicon_6 "Condition code 6 (ICD 9th Revision)" eniflag_6 "Nature of Injury Flag 6" econdp_7 "Part/line number on certificate 7" econds_7 "Sequence of condition within part/line 7" enicon_7 "Condition code 7 (ICD 9th Revision)" eniflag_7 "Nature of Injury Flag 7" econdp_8 "Part/line number on certificate 8" econds_8 "Sequence of condition within part/line 8" enicon_8 "Condition code 8 (ICD 9th Revision)" eniflag_8 "Nature of Injury Flag 8" econdp_9 "Part/line number on certificate 9" econds_9 "Sequence of condition within part/line 9" enicon_9 "Condition code 9 (ICD 9th Revision)" eniflag_9 "Nature of Injury Flag 9" econdp_10 "Part/line number on certificate 10" econds_10 "Sequence of condition within part/line 10" enicon_10 "Condition code 10 (ICD 9th Revision)" eniflag_10 "Nature of Injury Flag 10" econdp_11 "Part/line number on certificate 11" econds_11 "Sequence of condition within part/line 11" enicon_11 "Condition code 11 (ICD 9th Revision)" eniflag_11 "Nature of Injury Flag 11" econdp_12 "Part/line number on certificate 12" econds_12 "Sequence of condition within part/line 12" enicon_12 "Condition code 12 (ICD 9th Revision)" eniflag_12 "Nature of Injury Flag 12" econdp_13 "Part/line number on certificate 13" econds_13 "Sequence of condition within part/line 13" enicon_13 "Condition code 13 (ICD 9th Revision)" eniflag_13 "Nature of Injury Flag 13" econdp_14 "Part/line number on certificate 14" econds_14 "Sequence of condition within part/line 14" enicon_14 "Condition code 14 (ICD 9th Revision)" eniflag_14 "Nature of Injury Flag 14" econdp_15 "Part/line number on certificate 15" econds_15 "Sequence of condition within part/line 15" enicon_15 "Condition code 15 (ICD 9th Revision)" eniflag_15 "Nature of Injury Flag 15" econdp_16 "Part/line number on certificate 16" econds_16 "Sequence of condition within part/line 16" enicon_16 "Condition code 16 (ICD 9th Revision)" eniflag_16 "Nature of Injury Flag 16" econdp_17 "Part/line number on certificate 17" econds_17 "Sequence of condition within part/line 17" enicon_17 "Condition code 17 (ICD 9th Revision)" eniflag_17 "Nature of Injury Flag 17" econdp_18 "Part/line number on certificate 18" econds_18 "Sequence of condition within part/line 18" enicon_18 "Condition code 18 (ICD 9th Revision)" eniflag_18 "Nature of Injury Flag 18" econdp_19 "Part/line number on certificate 19" econds_19 "Sequence of condition within part/line 19" enicon_19 "Condition code 19 (ICD 9th Revision)" eniflag_19 "Nature of Injury Flag 19" econdp_20 "Part/line number on certificate 20" econds_20 "Sequence of condition within part/line 20" enicon_20 "Condition code 20 (ICD 9th Revision)" eniflag_20 "Nature of Injury Flag 20" ranum "Number of Record-Axis Conditions" record_1 "Record-Axis Condition Code 1 (ICD 9th Revision)" rniflag_1 "Nature of Injury Flag" record_2 "Record-Axis Condition Code 2 (ICD 9th Revision)" rniflag_2 "Nature of Injury Flag" record_3 "Record-Axis Condition Code 3 (ICD 9th Revision)" rniflag_3 "Nature of Injury Flag" record_4 "Record-Axis Condition Code 4 (ICD 9th Revision)" rniflag_4 "Nature of Injury Flag" record_5 "Record-Axis Condition Code 5 (ICD 9th Revision)" rniflag_5 "Nature of Injury Flag" record_6 "Record-Axis Condition Code 6 (ICD 9th Revision)" rniflag_6 "Nature of Injury Flag" record_7 "Record-Axis Condition Code 7 (ICD 9th Revision)" rniflag_7 "Nature of Injury Flag" record_8 "Record-Axis Condition Code 8 (ICD 9th Revision)" rniflag_8 "Nature of Injury Flag" record_9 "Record-Axis Condition Code 9 (ICD 9th Revision)" rniflag_9 "Nature of Injury Flag" record_10 "Record-Axis Condition Code 10 (ICD 9th Revision)" rniflag_10 "Nature of Injury Flag" record_11 "Record-Axis Condition Code 11 (ICD 9th Revision)" rniflag_11 "Nature of Injury Flag" record_12 "Record-Axis Condition Code 12 (ICD 9th Revision)" rniflag_12 "Nature of Injury Flag" record_13 "Record-Axis Condition Code 13 (ICD 9th Revision)" rniflag_13 "Nature of Injury Flag" record_14 "Record-Axis Condition Code 14 (ICD 9th Revision)" rniflag_14 "Nature of Injury Flag" record_15 "Record-Axis Condition Code 15 (ICD 9th Revision)" rniflag_15 "Nature of Injury Flag" record_16 "Record-Axis Condition Code 16 (ICD 9th Revision)" rniflag_16 "Nature of Injury Flag" record_17 "Record-Axis Condition Code 17 (ICD 9th Revision)" rniflag_17 "Nature of Injury Flag" record_18 "Record-Axis Condition Code 18 (ICD 9th Revision)" rniflag_18 "Nature of Injury Flag" record_19 "Record-Axis Condition Code 19 (ICD 9th Revision)" rniflag_19 "Nature of Injury Flag" record_20 "Record-Axis Condition Code 20 (ICD 9th Revision)" rniflag_20 "Nature of Injury Flag" . list. execute. save outfile = 'c:\linkco1987us_num.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.