------------------------------------------------------------------------------------------------------------------------ log: /disk/homes2b/nber/jroth/text/mort1994.log log type: text opened on: 2 Aug 2006, 14:37:06 . set mem 1000m (1024000k) . . /*------------------------------------------------ > This program reads the 1994 NCHS Multiple Cause of Death Data Data File > by Jean Roth Wed Aug 2 14:36:31 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 mort1994 > ----------------------------------------------- */ . . /* 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/1994/data/Mort94.dat" . . /* The following line should contain the path to your output '.dta' file */ . . local dta_name "./mort1994" . . /* The following line should contain the path to the data dictionary file */ . . local dct_name "./mort1994.dct" . . infile using "`dct_name'", using("`dat_name'") clear infile dictionary { *This program reads the 1994 NCHS Multiple Cause of Death Data Data File *by Jean Roth Wed Aug 2 14:36:31 EDT 2006 *Please report errors to jroth@nber.org *See the .do file for directions and run with do mort1994 *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(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 ) byte exstares %2f _column(33 ) str3 pmsares %3s _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 racer4 %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 ) long fipsctyo %5f _column(79 ) byte fipssto %2f _column(84 ) long fipsctyr %5f _column(84 ) byte fipsstr %2f _column(89 ) int fipspmsa %4f _column(93 ) byte injwork %1f _column(94 ) byte raceimp %1f _column(95 ) byte ageflag %1f _column(96 ) byte accident %1f _column(97 ) str4 ucod %4s _column(101 ) long ucr282 %5f _column(106 ) int ucr72 %3f _column(109 ) int ucr61 %3f _column(112 ) int ucr34 %3f _column(115 ) byte eanum %2f _column(117 ) str7 entity1 %7s _column(117 ) str2 econds_1 %2s _column(117 ) byte econdp_1 %1f _column(119 ) str5 enicon_1 %5s _column(119 ) byte eniflag1 %1f _column(124 ) str7 entity2 %7s _column(124 ) str2 econds_2 %2s _column(124 ) byte econdp_2 %1f _column(126 ) str5 enicon_2 %5s _column(126 ) byte eniflag2 %1f _column(131 ) str7 entity3 %7s _column(131 ) str2 econds_3 %2s _column(131 ) byte econdp_3 %1f _column(133 ) str5 enicon_3 %5s _column(133 ) byte eniflag3 %1f _column(138 ) str7 entity4 %7s _column(138 ) str2 econds_4 %2s _column(138 ) byte econdp_4 %1f _column(140 ) str5 enicon_4 %5s _column(140 ) byte eniflag4 %1f _column(145 ) str7 entity5 %7s _column(145 ) str2 econds_5 %2s _column(145 ) byte econdp_5 %1f _column(147 ) str5 enicon_5 %5s _column(147 ) byte eniflag5 %1f _column(152 ) str7 entity6 %7s _column(152 ) str2 econds_6 %2s _column(152 ) byte econdp_6 %1f _column(154 ) str5 enicon_6 %5s _column(154 ) byte eniflag6 %1f _column(159 ) str7 entity7 %7s _column(159 ) str2 econds_7 %2s _column(159 ) byte econdp_7 %1f _column(161 ) str5 enicon_7 %5s _column(161 ) byte eniflag7 %1f _column(166 ) str7 entity8 %7s _column(166 ) str2 econds_8 %2s _column(166 ) byte econdp_8 %1f _column(168 ) str5 enicon_8 %5s _column(168 ) byte eniflag8 %1f _column(173 ) str7 entity9 %7s _column(173 ) str2 econds_9 %2s _column(173 ) byte econdp_9 %1f _column(175 ) str5 enicon_9 %5s _column(175 ) byte eniflag9 %1f _column(180 ) str7 entity10 %7s _column(180 ) str2 econds_10 %2s _column(180 ) byte econdp_10 %1f _column(182 ) str5 enicon_10 %5s _column(182 ) byte eniflag10 %1f _column(187 ) str7 entity11 %7s _column(187 ) str2 econds_11 %2s _column(187 ) byte econdp_11 %1f _column(189 ) str5 enicon_11 %5s _column(189 ) byte eniflag11 %1f _column(194 ) str7 entity12 %7s _column(194 ) str2 econds_12 %2s _column(194 ) byte econdp_12 %1f _column(196 ) str5 enicon_12 %5s _column(196 ) byte eniflag12 %1f _column(201 ) str7 entity13 %7s _column(201 ) str2 econds_13 %2s _column(201 ) byte econdp_13 %1f _column(203 ) str5 enicon_13 %5s _column(203 ) byte eniflag13 %1f _column(208 ) str7 entity14 %7s _column(208 ) str2 econds_14 %2s _column(208 ) byte econdp_14 %1f _column(210 ) str5 enicon_14 %5s _column(210 ) byte eniflag14 %1f _column(215 ) str7 entity15 %7s _column(215 ) str2 econds_15 %2s _column(215 ) byte econdp_15 %1f _column(217 ) str5 enicon_15 %5s _column(217 ) byte eniflag15 %1f _column(222 ) str7 entity16 %7s _column(222 ) str2 econds_16 %2s _column(222 ) byte econdp_16 %1f _column(224 ) str5 enicon_16 %5s _column(224 ) byte eniflag16 %1f _column(229 ) str7 entity17 %7s _column(229 ) str2 econds_17 %2s _column(229 ) byte econdp_17 %1f _column(231 ) str5 enicon_17 %5s _column(231 ) byte eniflag17 %1f _column(236 ) str7 entity18 %7s _column(236 ) str2 econds_18 %2s _column(236 ) byte econdp_18 %1f _column(238 ) str5 enicon_18 %5s _column(238 ) byte eniflag18 %1f _column(243 ) str7 entity19 %7s _column(243 ) str2 econds_19 %2s _column(243 ) byte econdp_19 %1f _column(245 ) str5 enicon_19 %5s _column(245 ) byte eniflag19 %1f _column(250 ) str7 entity20 %7s _column(250 ) str2 econds_20 %2s _column(250 ) byte econdp_20 %1f _column(252 ) str5 enicon_20 %5s _column(252 ) byte eniflag20 %1f _column(257 ) byte ranum %2f _column(260 ) str5 record_1 %5s _column(260 ) byte rnifla_1 %1f _column(265 ) str5 record_2 %5s _column(265 ) byte rnifla_2 %1f _column(270 ) str5 record_3 %5s _column(270 ) byte rnifla_3 %1f _column(275 ) str5 record_4 %5s _column(275 ) byte rnifla_4 %1f _column(280 ) str5 record_5 %5s _column(280 ) byte rnifla_5 %1f _column(285 ) str5 record_6 %5s _column(285 ) byte rnifla_6 %1f _column(290 ) str5 record_7 %5s _column(290 ) byte rnifla_7 %1f _column(295 ) str5 record_8 %5s _column(295 ) byte rnifla_8 %1f _column(300 ) str5 record_9 %5s _column(300 ) byte rnifla_9 %1f _column(305 ) str5 record_10 %5s _column(305 ) byte rnifla_10 %1f _column(310 ) str5 record_11 %5s _column(310 ) byte rnifla_11 %1f _column(315 ) str5 record_12 %5s _column(315 ) byte rnifla_12 %1f _column(320 ) str5 record_13 %5s _column(320 ) byte rnifla_13 %1f _column(325 ) str5 record_14 %5s _column(325 ) byte rnifla_14 %1f _column(330 ) str5 record_15 %5s _column(330 ) byte rnifla_15 %1f _column(335 ) str5 record_16 %5s _column(335 ) byte rnifla_16 %1f _column(340 ) str5 record_17 %5s _column(340 ) byte rnifla_17 %1f _column(345 ) str5 record_18 %5s _column(345 ) byte rnifla_18 %1f _column(350 ) str5 record_19 %5s _column(350 ) byte rnifla_19 %1f _column(355 ) str5 record_20 %5s _column(355 ) byte rnifla_20 %1f } (1000 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 . tab sex sex | Freq. Percent Cum. ------------+----------------------------------- 1 | 458 45.80 45.80 2 | 542 54.20 100.00 ------------+----------------------------------- Total | 1,000 100.00 . tab race race | Freq. Percent Cum. ------------+----------------------------------- 1 | 795 79.50 79.50 2 | 203 20.30 99.80 3 | 1 0.10 99.90 4 | 1 0.10 100.00 ------------+----------------------------------- Total | 1,000 100.00 . sum age Variable | Obs Mean Std. Dev. Min Max -------------+-------------------------------------------------------- age | 1000 76.046 36.67158 2 632 . exit,clear