------------------------------------------------------------------------------------------------------------------------ log: /disk/homes2b/nber/jroth/text/mort1991.log log type: text opened on: 2 Aug 2006, 14:46:40 . set mem 1000m (1024000k) . . /*------------------------------------------------ > This program reads the 1991 NCHS Multiple Cause of Death Data Data File > by Jean Roth Wed Aug 2 14:45:29 EDT 2006 > Please report errors to jroth@nber.org > NOTE: This program is distributed under the GNU GPL. > See end of this file and http://www.gnu.org/licenses/ for details. > Run with do mort1991 > ----------------------------------------------- */ . . /* The following line should contain > the complete path and name of the raw data file. > On a PC, use backslashes in paths as in C:\ */ . . local dat_name "/homes/data/mortality/1991/data/Mort91.dat" . . /* The following line should contain the path to your output '.dta' file */ . . local dta_name "./mort1991" . . /* The following line should contain the path to the data dictionary file */ . . local dct_name "./mort1991.dct" . . infile using "`dct_name'", using("`dat_name'") clear infile dictionary { *This program reads the 1991 NCHS Multiple Cause of Death Data Data File *by Jean Roth Wed Aug 2 14:45:29 EDT 2006 *Please report errors to jroth@nber.org *See the .do file for directions and run with do mort1991 *NOTE: This program is distributed under the GNU GPL. *See end of this file and http://www.gnu.org/licenses/ for details. _column(1 ) byte datayear %2f _column(3 ) byte reparea %1f _column(4 ) byte rectype %1f _column(5 ) byte restatus %1f _column(6 ) str5 countyoc %5s _column(6 ) str2 stateoc %2s _column(11 ) byte region %1f _column(12 ) str2 divstoc %2s _column(14 ) str2 exstatoc %2s _column(16 ) str5 countyrs %5s _column(16 ) byte staters %2f _column(21 ) str5 cityrs %5s _column(26 ) str1 popsize %1s _column(27 ) str1 metro %1s _column(28 ) byte regnres %1f _column(29 ) byte divstres %2f _column(31 ) str5 pmsares %5s _column(31 ) byte exstares %2f _column(36 ) byte popsizoc %1f _column(37 ) str1 popsizrs %1s _column(38 ) str1 popmsa %1s _column(39 ) byte educ %2f _column(41 ) byte educr %1f _column(42 ) byte monthdth %2f _column(44 ) byte sex %1f _column(45 ) byte race %2f _column(47 ) byte racer3 %1f _column(48 ) byte racer5 %1f _column(49 ) int age %3f _column(52 ) byte ager52 %2f _column(54 ) byte ager20 %2f _column(56 ) byte ager12 %2f _column(58 ) byte ager22 %2f _column(60 ) byte placdth %1f _column(61 ) byte hispanr %1f _column(62 ) byte marstat %1f _column(63 ) byte statebth %2f _column(65 ) byte hispanic %2f _column(67 ) byte hspanicr %1f _column(68 ) byte weekday %1f _column(69 ) byte autopsy %1f _column(70 ) int industry %3f _column(73 ) int occup %3f _column(76 ) int ucr52 %3f _column(79 ) byte indusr51 %2f _column(81 ) byte indusr15 %2f _column(83 ) byte occupr59 %2f _column(85 ) byte occupr9 %2f _column(87 ) int calcage %4f _column(91 ) byte ageflag %1f _column(92 ) long fipsctyo %5f _column(92 ) byte fipssto %2f _column(97 ) long fipsctyr %5f _column(97 ) byte fipsstr %2f _column(102 ) int fipspmsa %4f _column(109 ) byte accident %1f _column(110 ) str4 ucod %4s _column(114 ) long ucr282 %5f _column(119 ) int ucr72 %3f _column(122 ) int ucr61 %3f _column(125 ) int ucr34 %3f _column(128 ) byte eanum %2f _column(130 ) str7 entity1 %7s _column(130 ) str2 econds_1 %2s _column(130 ) byte econdp_1 %1f _column(132 ) str5 enicon_1 %5s _column(132 ) byte eniflag1 %1f _column(137 ) str7 entity2 %7s _column(137 ) str2 econds_2 %2s _column(137 ) byte econdp_2 %1f _column(139 ) str5 enicon_2 %5s _column(139 ) byte eniflag2 %1f _column(144 ) str7 entity3 %7s _column(144 ) str2 econds_3 %2s _column(144 ) byte econdp_3 %1f _column(146 ) str5 enicon_3 %5s _column(146 ) byte eniflag3 %1f _column(151 ) str7 entity4 %7s _column(151 ) str2 econds_4 %2s _column(151 ) byte econdp_4 %1f _column(153 ) str5 enicon_4 %5s _column(153 ) byte eniflag4 %1f _column(158 ) str7 entity5 %7s _column(158 ) str2 econds_5 %2s _column(158 ) byte econdp_5 %1f _column(160 ) str5 enicon_5 %5s _column(160 ) byte eniflag5 %1f _column(165 ) str7 entity6 %7s _column(165 ) str2 econds_6 %2s _column(165 ) byte econdp_6 %1f _column(167 ) str5 enicon_6 %5s _column(167 ) byte eniflag6 %1f _column(172 ) str7 entity7 %7s _column(172 ) str2 econds_7 %2s _column(172 ) byte econdp_7 %1f _column(174 ) str5 enicon_7 %5s _column(174 ) byte eniflag7 %1f _column(179 ) str7 entity8 %7s _column(179 ) str2 econds_8 %2s _column(179 ) byte econdp_8 %1f _column(181 ) str5 enicon_8 %5s _column(181 ) byte eniflag8 %1f _column(186 ) str7 entity9 %7s _column(186 ) str2 econds_9 %2s _column(186 ) byte econdp_9 %1f _column(188 ) str5 enicon_9 %5s _column(188 ) byte eniflag9 %1f _column(193 ) str7 entity10 %7s _column(193 ) str2 econds_10 %2s _column(193 ) byte econdp_10 %1f _column(195 ) str5 enicon_10 %5s _column(195 ) byte eniflag10 %1f _column(200 ) str7 entity11 %7s _column(200 ) str2 econds_11 %2s _column(200 ) byte econdp_11 %1f _column(202 ) str5 enicon_11 %5s _column(202 ) byte eniflag11 %1f _column(207 ) str7 entity12 %7s _column(207 ) str2 econds_12 %2s _column(207 ) byte econdp_12 %1f _column(209 ) str5 enicon_12 %5s _column(209 ) byte eniflag12 %1f _column(214 ) str7 entity13 %7s _column(214 ) str2 econds_13 %2s _column(214 ) byte econdp_13 %1f _column(216 ) str5 enicon_13 %5s _column(216 ) byte eniflag13 %1f _column(221 ) str7 entity14 %7s _column(221 ) str2 econds_14 %2s _column(221 ) byte econdp_14 %1f _column(223 ) str5 enicon_14 %5s _column(223 ) byte eniflag14 %1f _column(228 ) str7 entity15 %7s _column(228 ) str2 econds_15 %2s _column(228 ) byte econdp_15 %1f _column(230 ) str5 enicon_15 %5s _column(230 ) byte eniflag15 %1f _column(235 ) str7 entity16 %7s _column(235 ) str2 econds_16 %2s _column(235 ) byte econdp_16 %1f _column(237 ) str5 enicon_16 %5s _column(237 ) byte eniflag16 %1f _column(242 ) str7 entity17 %7s _column(242 ) str2 econds_17 %2s _column(242 ) byte econdp_17 %1f _column(244 ) str5 enicon_17 %5s _column(244 ) byte eniflag17 %1f _column(249 ) str7 entity18 %7s _column(249 ) str2 econds_18 %2s _column(249 ) byte econdp_18 %1f _column(251 ) str5 enicon_18 %5s _column(251 ) byte eniflag18 %1f _column(256 ) str7 entity19 %7s _column(256 ) str2 econds_19 %2s _column(256 ) byte econdp_19 %1f _column(258 ) str5 enicon_19 %5s _column(258 ) byte eniflag19 %1f _column(263 ) str7 entity20 %7s _column(263 ) str2 econds_20 %2s _column(263 ) byte econdp_20 %1f _column(265 ) str5 enicon_20 %5s _column(265 ) byte eniflag20 %1f _column(270 ) byte ranum %2f _column(273 ) str5 record_1 %5s _column(273 ) byte rnifla_1 %1f _column(278 ) str5 record_2 %5s _column(278 ) byte rnifla_2 %1f _column(283 ) str5 record_3 %5s _column(283 ) byte rnifla_3 %1f _column(288 ) str5 record_4 %5s _column(288 ) byte rnifla_4 %1f _column(293 ) str5 record_5 %5s _column(293 ) byte rnifla_5 %1f _column(298 ) str5 record_6 %5s _column(298 ) byte rnifla_6 %1f _column(303 ) str5 record_7 %5s _column(303 ) byte rnifla_7 %1f _column(308 ) str5 record_8 %5s _column(308 ) byte rnifla_8 %1f _column(313 ) str5 record_9 %5s _column(313 ) byte rnifla_9 %1f _column(318 ) str5 record_10 %5s _column(318 ) byte rnifla_10 %1f _column(323 ) str5 record_11 %5s _column(323 ) byte rnifla_11 %1f _column(328 ) str5 record_12 %5s _column(328 ) byte rnifla_12 %1f _column(333 ) str5 record_13 %5s _column(333 ) byte rnifla_13 %1f _column(338 ) str5 record_14 %5s _column(338 ) byte rnifla_14 %1f _column(343 ) str5 record_15 %5s _column(343 ) byte rnifla_15 %1f _column(348 ) str5 record_16 %5s _column(348 ) byte rnifla_16 %1f _column(353 ) str5 record_17 %5s _column(353 ) byte rnifla_17 %1f _column(358 ) str5 record_18 %5s _column(358 ) byte rnifla_18 %1f _column(363 ) str5 record_19 %5s _column(363 ) byte rnifla_19 %1f _column(368 ) str5 record_20 %5s _column(368 ) byte rnifla_20 %1f } (100 observations read) . . . /* > Copyright 2006 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. > */ . end of do-file . sum age Variable | Obs Mean Std. Dev. Min Max -------------+-------------------------------------------------------- age | 100 73.71 18.45404 35 202 . tab sex sex | Freq. Percent Cum. ------------+----------------------------------- 1 | 51 51.00 51.00 2 | 49 49.00 100.00 ------------+----------------------------------- Total | 100 100.00 . tab race race | Freq. Percent Cum. ------------+----------------------------------- 1 | 80 80.00 80.00 2 | 20 20.00 100.00 ------------+----------------------------------- Total | 100 100.00 . exit,clear