*This program reads the 1997 NCHS Multiple Cause of Death 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 Mon Jul 14 16:35:53 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:\mortterr1997.sps". *and choose to RUN ALL file handle mortterr1997 /name="c:\homes\data\mortality\1997\mort1997ps.dat" . data list file=mortterr1997 / rectype 19 restatus 20 stateoc 21-22 (a) countyoc 21-25 (a) region 26 divstoc 27-28 exstatoc 29-30 (a) staters 31-32 (a) countyrs 31-35 (a) cityrs 36-38 (a) popsize 39-39 (a) metro 40-40 (a) regnres 41 divstres 42-43 exstares 44-45 (a) pmsares 46-48 (a) popsizoc 49 popsizrs 50-50 (a) popmsa 51-51 (a) educ 52-53 educr 54 monthdth 55-56 sex 59 race 60-61 racer3 62 racer2 63 age 64-66 ager52 67-68 ager27 69-70 ager12 71-72 ager22 73-74 placdth 75 marstat 77 statbth 78-79 hispanic 80-81 hspanicr 82 weekday 83 industry 85-87 occup 88-90 ucr52 91-93 fipscity 97-101 (a) year 115-118 fipssto 119-120 (a) fipsctyo 119-123 (a) fipsstr 124-125 (a) fipsctyr 124-128 (a) fipspmsa 129-132 (a) fipscmsa 134-135 (a) injwork 136 raceimp 137 ageflag 138 accident 141 ucod 142-145 (a) ucr282 146-150 ucr72 151-153 ucr61 154-156 ucr34 157-159 eanum 160-161 econdp_1 162 econds_1 163-163 (a) enicon_1 164-167 (a) enifla_1 168-168 (a) econdp_2 169 econds_2 170-170 (a) enicon_2 171-174 (a) enifla_2 175-175 (a) econdp_3 176 econds_3 177-177 (a) enicon_3 178-181 (a) enifla_3 182-182 (a) econdp_4 183 econds_4 184-184 (a) enicon_4 185-188 (a) enifla_4 189-189 (a) econdp_5 190 econds_5 191-191 (a) enicon_5 192-195 (a) enifla_5 196-196 (a) econdp_6 197 econds_6 198-198 (a) enicon_6 199-202 (a) enifla_6 203-203 (a) econdp_7 204 econds_7 205-205 (a) enicon_7 206-209 (a) enifla_7 210-210 (a) econdp_8 211 econds_8 212-212 (a) enicon_8 213-216 (a) enifla_8 217-217 (a) econdp_9 218 econds_9 219-219 (a) enicon_9 220-223 (a) enifla_9 224-224 (a) econdp_10 225 econds_10 226-226 (a) enicon_10 227-230 (a) enifla_10 231-231 (a) econdp_11 232 econds_11 233-233 (a) enicon_11 234-237 (a) enifla_11 238-238 (a) econdp_12 239 econds_12 240-240 (a) enicon_12 241-244 (a) enifla_12 245-245 (a) econdp_13 246 econds_13 247-247 (a) enicon_13 248-251 (a) enifla_13 252-252 (a) econdp_14 253 econds_14 254-254 (a) enicon_14 255-258 (a) enifla_14 259-259 (a) econdp_15 260 econds_15 261-261 (a) enicon_15 262-265 (a) enifla_15 266-266 (a) econdp_16 267 econds_16 268-268 (a) enicon_16 269-272 (a) enifla_16 273-273 (a) econdp_17 274 econds_17 275-275 (a) enicon_17 276-279 (a) enifla_17 280-280 (a) econdp_18 281 econds_18 282-282 (a) enicon_18 283-286 (a) enifla_18 287-287 (a) econdp_19 288 econds_19 289-289 (a) enicon_19 290-293 (a) enifla_19 294-294 (a) econdp_20 295 econds_20 296-296 (a) enicon_20 297-300 (a) enifla_20 301-301 (a) ranum 338-339 record_1 341-344 (a) rnifla_1 345 record_2 346-349 (a) rnifla_2 350 record_3 351-354 (a) rnifla_3 355 record_4 356-359 (a) rnifla_4 360 record_5 361-364 (a) rnifla_5 365 record_6 366-369 (a) rnifla_6 370 record_7 371-374 (a) rnifla_7 375 record_8 376-379 (a) rnifla_8 380 record_9 381-384 (a) rnifla_9 385 record_10 386-389 (a) rnifla_10 390 record_11 391-394 (a) rnifla_11 395 record_12 396-399 (a) rnifla_12 400 record_13 401-404 (a) rnifla_13 405 record_14 406-409 (a) rnifla_14 410 record_15 411-414 (a) rnifla_15 415 record_16 416-419 (a) rnifla_16 420 record_17 421-424 (a) rnifla_17 425 record_18 426-429 (a) rnifla_18 430 record_19 431-434 (a) rnifla_19 435 record_20 436-439 (a) rnifla_20 440 . * See the codebook for more detailed variable descriptions. variable labels rectype "Record Type" restatus "Resident Status" stateoc "State of Occurrence" countyoc "County of Occurrence" region "Region" divstoc "Division and State Subcode of Occurrence" exstatoc "Expanded State of Occurrence Code" staters "State of Residence" countyrs "County of Residence" cityrs "City of Residence" popsize "Population Size of City of Residence" metro "Metropolitan - Nonmetropolitan County of Residence" regnres "Region" divstres "Division and State Subcode of Residence" exstares "Expanded State of Residence Code" pmsares "NCHS PMSA/MSA of Residence" popsizoc "Population Size of County of Occurrence" popsizrs "Population Size of County of Residence" popmsa "PMSA/MSA Population Size" educ "Education" educr "Education recode" monthdth "Month of Death" sex "Sex" race "Detail Race" racer3 "Race Recode 3" racer2 "Race Recode 2" age "Detail Age" ager52 "Age Recode 52" ager27 "Age Recode 27" ager12 "Age Recode 12" ager22 "Infant Age Recode 22" placdth "Place of Death and Decedent" marstat "Marital Status" statbth "State of Birth" hispanic "Hispanic Origin" hspanicr "Hispanic Origin/Race Recode" weekday "Day of Week of Death" industry "Kind of Business or Industry" occup "Usual Occupation" ucr52 "52 Cause Recode" fipscity "Place (city) of Residence (FIPS)" year "Current Data Year" fipssto "State of Occurrence (FIPS)" fipsctyo "County of Occurrence (FIPS)" fipsstr "State of Residence (FIPS)" fipsctyr "County of Residence (FIPS)" fipspmsa "PMSA/MSA of Residence (FIPS)" fipscmsa "CMSA of Residence (FIPS)" injwork "Injury at Work" raceimp "Race Imputation Flag" ageflag "Age Substitution Flag" accident "Place of Accident for Causes E850-E869 and E880-E928" ucod "ICD Code (9th Revision)" ucr282 "282 Cause Recode" ucr72 "72 Cause Recode" ucr61 "61 Cause Recode" ucr34 "34 Cause Recode" eanum "Number of Entity-Axis Conditions" ranum "Number of Record-Axis Conditions" record_1 "Condition" rnifla_1 "Nature of Injury Flag and Condition" record_2 "Condition" rnifla_2 "Nature of Injury Flag and Condition" record_3 "Condition" rnifla_3 "Nature of Injury Flag and Condition" record_4 "Condition" rnifla_4 "Nature of Injury Flag and Condition" record_5 "Condition" rnifla_5 "Nature of Injury Flag and Condition" record_6 "Condition" rnifla_6 "Nature of Injury Flag and Condition" record_7 "Condition" rnifla_7 "Nature of Injury Flag and Condition" record_8 "Condition" rnifla_8 "Nature of Injury Flag and Condition" record_9 "Condition" rnifla_9 "Nature of Injury Flag and Condition" record_10 "Condition" rnifla_10 "Nature of Injury Flag and Condition" record_11 "Condition" rnifla_11 "Nature of Injury Flag and Condition" record_12 "Condition" rnifla_12 "Nature of Injury Flag and Condition" record_13 "Condition" rnifla_13 "Nature of Injury Flag and Condition" record_14 "Condition" rnifla_14 "Nature of Injury Flag and Condition" record_15 "Condition" rnifla_15 "Nature of Injury Flag and Condition" record_16 "Condition" rnifla_16 "Nature of Injury Flag and Condition" record_17 "Condition" rnifla_17 "Nature of Injury Flag and Condition" record_18 "Condition" rnifla_18 "Nature of Injury Flag and Condition" record_19 "Condition" rnifla_19 "Nature of Injury Flag and Condition" record_20 "Condition" rnifla_20 "Nature of Injury Flag and Condition" . list. execute. save outfile = 'c:\mortterr1997.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.