*This program reads the 1999 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:44:48 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:\mort1999.sps". *and choose to RUN ALL file handle mort1999 /name="c:\homes\data\mortality\1999\mort1999us.dat" . data list file=mort1999 / 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 mandeath 139 activity 140 injury 141 ucod 142-145 (a) ucr358 146-148 ucr113 151-153 ucr130 154-156 ucr39 157-158 eanum 160-161 econdp_1 162 econds_1 163-163 (a) enicon_1 164-167 (a) econdp_2 169 econds_2 170-170 (a) enicon_2 171-174 (a) econdp_3 176 econds_3 177-177 (a) enicon_3 178-181 (a) econdp_4 183 econds_4 184-184 (a) enicon_4 185-188 (a) econdp_5 190 econds_5 191-191 (a) enicon_5 192-195 (a) econdp_6 197 econds_6 198-198 (a) enicon_6 199-202 (a) econdp_7 204 econds_7 205-205 (a) enicon_7 206-209 (a) econdp_8 211 econds_8 212-212 (a) enicon_8 213-216 (a) econdp_9 218 econds_9 219-219 (a) enicon_9 220-223 (a) econdp_10 225 econds_10 226-226 (a) enicon_10 227-230 (a) econdp_11 232 econds_11 233-233 (a) enicon_11 234-237 (a) econdp_12 239 econds_12 240-240 (a) enicon_12 241-244 (a) econdp_13 246 econds_13 247-247 (a) enicon_13 248-251 (a) econdp_14 253 econds_14 254-254 (a) enicon_14 255-258 (a) econdp_15 260 econds_15 261-261 (a) enicon_15 262-265 (a) econdp_16 267 econds_16 268-268 (a) enicon_16 269-272 (a) econdp_17 274 econds_17 275-275 (a) enicon_17 276-279 (a) econdp_18 281 econds_18 282-282 (a) enicon_18 283-286 (a) econdp_19 288 econds_19 289-289 (a) enicon_19 290-293 (a) econdp_20 295 econds_20 296-296 (a) enicon_20 297-300 (a) ranum 338-339 record_1 341-344 (a) record_2 346-349 (a) record_3 351-354 (a) record_4 356-359 (a) record_5 361-364 (a) record_6 366-369 (a) record_7 371-374 (a) record_8 376-379 (a) record_9 381-384 (a) record_10 386-389 (a) record_11 391-394 (a) record_12 396-399 (a) record_13 401-404 (a) record_14 406-409 (a) record_15 411-414 (a) record_16 416-419 (a) record_17 421-424 (a) record_18 426-429 (a) record_19 431-434 (a) record_20 436-439 (a) . * 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's Status" 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" mandeath "Manner of death" activity "Activity code" injury "Place of Injury for Causes W00-Y34 except Y06.- and Y07.-" ucod "ICD Code (10th Revision)" ucr358 "358 Cause Recode" ucr113 "113 Cause Recode" ucr130 "130 Cause Recode" ucr39 "39 Cause Recode" eanum "Number of Entity-Axis Conditions" ranum "Number of Record-Axis Conditions" record_1 "Condition" record_2 "Condition" record_3 "Condition" record_4 "Condition" record_5 "Condition" record_6 "Condition" record_7 "Condition" record_8 "Condition" record_9 "Condition" record_10 "Condition" record_11 "Condition" record_12 "Condition" record_13 "Condition" record_14 "Condition" record_15 "Condition" record_16 "Condition" record_17 "Condition" record_18 "Condition" record_19 "Condition" record_20 "Condition" . list. execute. save outfile = 'c:\mort1999.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.