*This program reads the 1987 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 Tue Jun 24 09:39:33 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:\mort1987.sps". *and choose to RUN ALL file handle mort1987 /name="c:\homes\data\mortality\1987\data\mort1987.dat" . data list file=mort1987 / datayear 1-2 reparea 3 shipno 10-11 (a) rectype 19 restatus 20 countyoc 21-25 (a) stateoc 21-22 (a) region 26 divstoc 27-28 (a) exstatoc 29-30 (a) countyrs 31-35 (a) staters 31-32 (a) cityrs 36-38 (a) popsize 39-39 (a) metro 40-40 (a) regnres 41 divstres 42-43 exstares 44-45 (a) smsares 46-48 (a) monthdth 55-56 daydth 57-58 sex 59 race 60-61 racer3 62 racer2 63 age 64-66 ager52 67-68 ager27 69-70 ager12 71-72 ager22 73-74 hospstat 75 marstat 77 statebth 78-79 origin 80-81 autopsy 84 industry 85-87 occup 88-90 ucr52 91-93 indusr51 94-95 indusr15 96-97 occupr59 98-99 occupr9 100-101 fipsctyo 119-123 (a) fipssto 119-120 (a) fipsctyr 124-128 (a) fipsstr 124-125 (a) fipssmsa 129-132 (a) accident 141 ucod 142-145 (a) ucr282 146-150 ucr72 151-153 ucr61 154-156 ucr34 157-159 eanum 160-161 entity1 162-168 (a) econdp_1 162 econds_1 163-163 (a) enicon_1 164-167 (a) eniflag1 168 entity2 169-175 (a) econdp_2 169 econds_2 170-170 (a) enicon_2 171-174 (a) eniflag2 175 entity3 176-182 (a) econdp_3 176 econds_3 177-177 (a) enicon_3 178-181 (a) eniflag3 182 entity4 183-189 (a) econdp_4 183 econds_4 184-184 (a) enicon_4 185-188 (a) eniflag4 189 entity5 190-196 (a) econdp_5 190 econds_5 191-191 (a) enicon_5 192-195 (a) eniflag5 196 entity6 197-203 (a) econdp_6 197 econds_6 198-198 (a) enicon_6 199-202 (a) eniflag6 203 entity7 204-210 (a) econdp_7 204 econds_7 205-205 (a) enicon_7 206-209 (a) eniflag7 210 entity8 211-217 (a) econdp_8 211 econds_8 212-212 (a) enicon_8 213-216 (a) eniflag8 217 entity9 218-224 (a) econdp_9 218 econds_9 219-219 (a) enicon_9 220-223 (a) eniflag9 224 entity10 225-231 (a) econdp_10 225 econds_10 226-226 (a) enicon_10 227-230 (a) eniflag10 231 entity11 232-238 (a) econdp_11 232 econds_11 233-233 (a) enicon_11 234-237 (a) eniflag11 238 entity12 239-245 (a) econdp_12 239 econds_12 240-240 (a) enicon_12 241-244 (a) eniflag12 245 entity13 246-252 (a) econdp_13 246 econds_13 247-247 (a) enicon_13 248-251 (a) eniflag13 252 entity14 253-259 (a) econdp_14 253 econds_14 254-254 (a) enicon_14 255-258 (a) eniflag14 259 entity15 260-266 (a) econdp_15 260 econds_15 261-261 (a) enicon_15 262-265 (a) eniflag15 266 entity16 267-273 (a) econdp_16 267 econds_16 268-268 (a) enicon_16 269-272 (a) eniflag16 273 entity17 274-280 (a) econdp_17 274 econds_17 275-275 (a) enicon_17 276-279 (a) eniflag17 280 entity18 281-287 (a) econdp_18 281 econds_18 282-282 (a) enicon_18 283-286 (a) eniflag18 287 entity19 288-294 (a) econdp_19 288 econds_19 289-289 (a) enicon_19 290-293 (a) eniflag19 294 entity20 295-301 (a) econdp_20 295 econds_20 296-296 (a) enicon_20 297-300 (a) eniflag20 301 ranum 338-339 record_1 341-345 (a) rnifla_1 345 record_2 346-350 (a) rnifla_2 350 record_3 351-355 (a) rnifla_3 355 record_4 356-360 (a) rnifla_4 360 record_5 361-365 (a) rnifla_5 365 record_6 366-370 (a) rnifla_6 370 record_7 371-375 (a) rnifla_7 375 record_8 376-380 (a) rnifla_8 380 record_9 381-385 (a) rnifla_9 385 record_10 386-390 (a) rnifla_10 390 record_11 391-395 (a) rnifla_11 395 record_12 396-400 (a) rnifla_12 400 record_13 401-405 (a) rnifla_13 405 record_14 406-410 (a) rnifla_14 410 record_15 411-415 (a) rnifla_15 415 record_16 416-420 (a) rnifla_16 420 record_17 421-425 (a) rnifla_17 425 record_18 426-430 (a) rnifla_18 430 record_19 431-435 (a) rnifla_19 435 record_20 436-440 (a) rnifla_20 440 . * See the codebook for more detailed variable descriptions. variable labels . list. execute. save outfile = 'c:\mort1987.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.