log using injpoiep.log, replace version 6.0 * THE FOLLOWING COMMAND TEMPORARILY CHANGES THE COMMAND- * ENDING DELIMITER FROM A CARRIAGE RETURN TO A SEMICOLON #delimit ; ********************************************************************* JUNE 3, 2010 2:56 PM THIS IS AN EXAMPLE OF A STATA DO PROGRAM THAT CREATES A STATA FILE FROM THE 2009 NHIS Public Use Episode ASCII FILE NOTES: EXECUTING THIS PROGRAM WILL REPLACE injpoiep.dta AND injpoiep.log IF THOSE FILES ALREADY EXIST IN THE DEFAULT DIRECTORY THIS PROGRAM ASSUMES THAT THE ASCII DATA FILE IS IN THE STATA WORKING DIRECTORY. AN EXAMPLE OF HOW TO CHANGE THE WORKING DIRECTORY WITHIN STATA IS THE FOLLOWING COMMAND: cd C:\nhis2009\ THIS PROGRAM OPENS A LOG FILE. IF THE PROGRAM ENDS PREMATURELY, THE LOG FILE WILL REMAIN OPEN. BEFORE RUNNING THIS PROGRAM AGAIN, THE USER SHOULD ENTER THE FOLLOWING STATA COMMAND: log close THIS IS STORED IN injpoiep.do *********************************************************************; clear; set mem 200m; * INPUT ALL VARIABLES; infix rectype 1 - 2 srvy_yr 3 - 6 str hhx 7 - 12 str fmx 13 - 14 str fpx 15 - 16 str ipepno 17 - 18 wtfa 19 - 24 ipdatem 25 - 26 ipdatey 27 - 30 ipdateno 31 - 33 ipdatetp 34 - 34 ipdatemt 35 - 35 rpckdmr 36 - 38 rpd 39 - 41 bietd 42 - 44 eietd 45 - 47 edipbr 48 - 48 impmeth 49 - 49 mumon 50 - 51 muyear 52 - 55 etflg 56 - 56 beiflg 57 - 57 icaus 58 - 59 ecaus 60 - 61 ijbody1 62 - 63 ijbody2 64 - 65 ijbody3 66 - 67 ijbody4 68 - 69 ijtype1a 70 - 71 ijtype1b 72 - 73 ijtype2a 74 - 75 ijtype2b 76 - 77 ijtype3a 78 - 79 ijtype3b 80 - 81 ijtype4a 82 - 83 ijtype4b 84 - 85 ppcc 86 - 86 ipev 87 - 87 iper 88 - 88 ipdo 89 - 89 ippchcp 90 - 90 ipoth 91 - 91 iphosp 92 - 92 ipihno 93 - 94 imtraf 95 - 95 imvwho 96 - 96 imvtyp 97 - 98 isbelt 99 - 99 ihelmt 100 - 100 ifall1 101 - 102 ifall2 103 - 104 ifallwhy 105 - 105 ppois 106 - 106 ipwhat1 107 - 108 ipwhat2 109 - 110 ipwher1 111 - 112 ipwher2 113 - 114 ipemp 115 - 115 ipwkls 116 - 116 ipstu 117 - 117 ipscls 118 - 118 str icd9_1 119 - 123 str icd9_2 124 - 128 str icd9_3 129 - 133 str icd9_4 134 - 138 str icd9_5 139 - 143 str icd9_6 144 - 148 str icd9_7 149 - 153 str icd9_8 154 - 158 str ecode_1t 159 - 163 str ecode_2t 164 - 168 str ecode_3t 169 - 173 using injpoiep.dat; * DEFINE VARIABLE LABELS; label variable rectype "IDN.000_00.000: File type identifier"; label variable srvy_yr " IDN.000_02.000: Year of National Health Interview Survey"; label variable hhx "IDN.000_04.000: HH identifier"; label variable fmx "IDN.000_35.000: Family #"; label variable fpx "IDN.000_40.000: Person Number (Within family)"; label variable ipepno "IDN.000_55.000: Injury/Poisoning Episode Number"; label variable wtfa "IDN.000_70.000: Weight - Final Annual"; label variable ipdatem "FIJ.050_01.000: Month of injury/poisoning episode"; label variable ipdatey "FIJ.050_03.000: Year of injury/poisoning episode"; label variable ipdateno " FIJ.051_01.000: Approximate time since injury/poisoning episode: Number of units "; label variable ipdatetp " FIJ.051_02.000: Approximate time since injury/poisoning episode: Time period"; label variable ipdatemt " FIJ.052_00.000: Approximate point in month of injury/poisoning episode"; label variable rpckdmr " FIJ.052_00.000: Time between the date of the injury/poisoning episode and the da te the injury/poisoning questions were asked"; label variable rpd " FIJ.052_02.000: Days between the date of the injury/poisoning episode and the da te the injury/poisoning questions were asked"; label variable bietd " FIJ.052_00.000: Lower boundary of elapsed time interval in days"; label variable eietd " FIJ.052_00.000: Upper boundary of elapsed time interval in days"; label variable edipbr " FIJ.052_00.000: Episode date information reported by the respondent"; label variable impmeth " FIJ.052_00.000: Imputed part of I/P date or elapsed time interval"; label variable mumon "FIJ.052_00.000: Imputed month"; label variable muyear "FIJ.052_00.000: Imputed year"; label variable etflg "FIJ.052_00.000: Elapsed time flag"; label variable beiflg "FIJ.052_00.000: Elapsed time interval boundary flag"; label variable icaus "FIJ.065_00.000: Cause of injury episode"; label variable ecaus " FIJ.065_00.000: Cause of injury/poisoning based on E codes"; label variable ijbody1 "FIJ.070_01.000: Parts of body hurt: 1st body part"; label variable ijbody2 "FIJ.070_02.000: Parts of body hurt: 2nd body part"; label variable ijbody3 "FIJ.070_03.000: Parts of body hurt: 3rd body part"; label variable ijbody4 "FIJ.070_04.000: Parts of body hurt: 4th body part"; label variable ijtype1a " FIJ.072_01.000: How body part 1 was hurt: First response"; label variable ijtype1b " FIJ.072_02.000: How body part 1 was hurt: Second response"; label variable ijtype2a " FIJ.074_01.000: How body part 2 was hurt: First response"; label variable ijtype2b " FIJ.074_02.000: How body part 2 was hurt: Second response"; label variable ijtype3a " FIJ.076_01.000: How body part 3 was hurt: First response"; label variable ijtype3b " FIJ.076_02.000: How body part 3 was hurt: Second response"; label variable ijtype4a " FIJ.078_01.000: How body part 4 was hurt: First response"; label variable ijtype4b " FIJ.078_02.000: How body part 4 was hurt: Second response"; label variable ppcc " FIJ.080_01.000: Where received medical care: Call to PCC"; label variable ipev " FIJ.080_02.000: Where received medical care: Emergency vehicle"; label variable iper " FIJ.080_03.000: Where received medical care: Emergency room"; label variable ipdo " FIJ.080_04.000: Where received medical care: Doctor's office/clinic"; label variable ippchcp " FIJ.080_05.000: Where received medical care: Call to medical prof"; label variable ipoth " FIJ.080_06.000: Where received medical care: Any place else"; label variable iphosp " FIJ.090_00.000: Hospitalized overnight due to injury/poisoning episode"; label variable ipihno "FIJ.091_00.000: Number of nights in the hospital"; label variable imtraf "FIJ.109_00.000: Traffic-related injury"; label variable imvwho "FIJ.110_00.000: Injured as . . ."; label variable imvtyp "FIJ.111_00.000: Type of vehicle injured person was in"; label variable isbelt "FIJ.112_00.000: Restrained at time of accident"; label variable ihelmt " FIJ.113_00.000: Wearing a helmet at the time of the accident"; label variable ifall1 "FIJ.130_01.000: How person fell: First response"; label variable ifall2 "FIJ.130_02.000: How person fell: Second response"; label variable ifallwhy "FIJ.131_00.000: Cause of fall"; label variable ppois "FIJ.140_00.000: Cause of poisoning episode"; label variable ipwhat1 " FIJ.150_01.000: Activity at time of inj/pois episode: First response"; label variable ipwhat2 " FIJ.150_02.000: Activity at time of inj/pois episode: Second response"; label variable ipwher1 " FIJ.160_01.000: Location at time of inj/pois episode: First response"; label variable ipwher2 " FIJ.160_02.000: Location at time of inj/pois episode: Second response"; label variable ipemp " FIJ.170_00.000: Employed at the time of the injury/poisoning episode"; label variable ipwkls "FIJ.171_00.000: Days of work missed"; label variable ipstu " FIJ.180_00.000: Student at the time of the injury/poisoning episode"; label variable ipscls "FIJ.181_00.000: Days of school missed"; label variable icd9_1 "FIJ.181_01.000: ICD-9-CM diagnosis code"; label variable icd9_2 "FIJ.181_02.000: ICD-9-CM diagnosis code"; label variable icd9_3 "FIJ.181_03.000: ICD-9-CM diagnosis code"; label variable icd9_4 "FIJ.181_04.000: ICD-9-CM diagnosis code"; label variable icd9_5 "FIJ.181_05.000: ICD-9-CM diagnosis code"; label variable icd9_6 "FIJ.181_06.000: ICD-9-CM diagnosis code"; label variable icd9_7 "FIJ.181_07.000: ICD-9-CM diagnosis code"; label variable icd9_8 "FIJ.181_08.000: ICD-9-CM diagnosis code"; label variable ecode_1t "FIJ.181_10.000: ICD-9-CM external cause code"; label variable ecode_2t "FIJ.181_20.000: ICD-9-CM external cause code"; label variable ecode_3t "FIJ.181_30.000: ICD-9-CM external cause code"; * DEFINE VALUE LABELS FOR REPORTS; label define inp001x 10 "10 Household" 20 "20 Person" 25 "25 Income Imputation" 30 "30 Sample Adult" 40 "40 Sample Child" 60 "60 Family" 63 "63 Disability Questions Tests 2008/2009" 65 "65 Paradata" 70 "70 Injury/Poisoning Episode" 75 "75 Injury/Poisoning Verbatim" ; label define inp008x 01 "01 January" 02 "02 February" 03 "03 March" 04 "04 April" 05 "05 May" 06 "06 June" 07 "07 July" 08 "08 August" 09 "09 September" 10 "10 October" 11 "11 November" 12 "12 December" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp009x 9997 "9997 Refused" 9998 "9998 Not ascertained" 9999 "9999 Don't know" ; label define inp010x 997 "997 Refused" 998 "998 Not ascertained" 999 "999 Don't know" ; label define inp011x 1 "1 Days" 2 "2 Weeks" 3 "3 Months" 7 "7 Refused" 8 "8 Not ascertained" 9 "9 Don't know" ; label define inp012x 1 "1 Beginning" 2 "2 Middle" 3 "3 End" 7 "7 Refused" 8 "8 Not ascertained" 9 "9 Don't know" ; label define inp013x 500 "500 Same month as month the injury/poisoning questions were asked" 501 " 501 Month before the month the injury/poisoning questions were asked" 998 "998 Not ascertained" ; label define inp017x 1 "1 Month, day, and year" 2 "2 Month, beginning of month, and year" 3 "3 Month, middle of month, and year" 4 "4 Month, end of month, and year" 5 "5 Month and year" 6 "6 Elapsed time in days" 7 "7 Elapsed time in weeks" 8 "8 Elapsed time in months" 9 "9 No information" ; label define inp018x 0 " 0 No imputation necessary (month, day, and year reported; or elapsed time interv al width = 0)" 1 "1 Imputed day based on reported beginning, middle, or end of month" 2 "2 Imputed day of the month (no day of month information reported)" 3 "3 No imputation necessary (elapsed time reported in days)" 4 "4 Imputed time interval based on elapsed time reported in weeks" 5 "5 Imputed time interval based on elapsed time reported in months" 6 " 6 Imputed elapsed time & elapsed time interval using hot deck imputation (no dat e information reported or no valid date information reported" ; label define inp019x 01 "01 January" 02 "02 February" 03 "03 March" 04 "04 April" 05 "05 May" 06 "06 June" 07 "07 July" 08 "08 August" 09 "09 September" 10 "10 October" 11 "11 November" 12 "12 December" ; label define inp021x 1 "1 Elapsed time is > 91 days" 2 "2 Elapsed time is <= 91 days" ; label define inp022x 1 " 1 Only the upper boundary of the interval for elapsed time is > 91 days" 2 " 2 Upper and lower boundary of the interval for elapsed time is > 91 days" 3 " 3 Upper and lower boundary of the interval for elapsed time is <= 91 days" ; label define inp023x 01 "01 In a motor vehicle" 02 "02 On a bike, scooter, skateboard, skates, skis, horse, etc" 03 "03 Pedestrian who was struck by a vehicle such as a car or bicycle" 04 "04 In a boat, train, or plane" 05 "05 Fall" 06 " 06 Burned or scalded by substances such as hot objects or liquids, fire, or chem icals" 07 "07 Other" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp024x 01 "01 Transportation" 02 "02 Fire/burn/scald related" 03 "03 Fall" 04 "04 Poisoning" 05 "05 Overexertion/strenuous movements" 06 "06 Struck by object or person" 07 "07 Animal or insect bite" 08 "08 Cut/pierce" 09 "09 Machinery" 10 "10 Other" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp025x 01 "01 Ankle" 02 "02 Back" 03 "03 Buttocks" 04 "04 Chest" 05 "05 Ear" 06 "06 Elbow" 07 "07 Eye" 08 "08 Face" 09 "09 Finger/thumb" 10 "10 Foot" 11 "11 Forearm" 12 "12 Groin" 13 "13 Hand" 14 "14 Head (not face)" 15 "15 Hip" 16 "16 Jaw" 17 "17 Knee" 18 "18 Lower leg" 19 "19 Mouth" 20 "20 Neck" 21 "21 Nose" 22 "22 Shoulder" 23 "23 Stomach" 24 "24 Teeth" 25 "25 Thigh" 26 "26 Toe" 27 "27 Upper arm" 28 "28 Wrist" 29 "29 Other" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp026x 00 "00 No second response" 01 "01 Ankle" 02 "02 Back" 03 "03 Buttocks" 04 "04 Chest" 05 "05 Ear" 06 "06 Elbow" 07 "07 Eye" 08 "08 Face" 09 "09 Finger/thumb" 10 "10 Foot" 11 "11 Forearm" 12 "12 Groin" 13 "13 Hand" 14 "14 Head (not face)" 15 "15 Hip" 16 "16 Jaw" 17 "17 Knee" 18 "18 Lower leg" 19 "19 Mouth" 20 "20 Neck" 21 "21 Nose" 22 "22 Shoulder" 23 "23 Stomach" 24 "24 Teeth" 25 "25 Thigh" 26 "26 Toe" 27 "27 Upper arm" 28 "28 Wrist" 29 "29 Other" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp027x 00 "00 No third response" 01 "01 Ankle" 02 "02 Back" 03 "03 Buttocks" 04 "04 Chest" 05 "05 Ear" 06 "06 Elbow" 07 "07 Eye" 08 "08 Face" 09 "09 Finger/thumb" 10 "10 Foot" 11 "11 Forearm" 12 "12 Groin" 13 "13 Hand" 14 "14 Head (not face)" 15 "15 Hip" 16 "16 Jaw" 17 "17 Knee" 18 "18 Lower leg" 19 "19 Mouth" 20 "20 Neck" 21 "21 Nose" 22 "22 Shoulder" 23 "23 Stomach" 24 "24 Teeth" 25 "25 Thigh" 26 "26 Toe" 27 "27 Upper arm" 28 "28 Wrist" 29 "29 Other" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp028x 00 "00 No fourth response" 01 "01 Ankle" 02 "02 Back" 03 "03 Buttocks" 04 "04 Chest" 05 "05 Ear" 06 "06 Elbow" 07 "07 Eye" 08 "08 Face" 09 "09 Finger/thumb" 10 "10 Foot" 11 "11 Forearm" 12 "12 Groin" 13 "13 Hand" 14 "14 Head (not face)" 15 "15 Hip" 16 "16 Jaw" 17 "17 Knee" 18 "18 Lower leg" 19 "19 Mouth" 20 "20 Neck" 21 "21 Nose" 22 "22 Shoulder" 23 "23 Stomach" 24 "24 Teeth" 25 "25 Thigh" 26 "26 Toe" 27 "27 Upper arm" 28 "28 Wrist" 29 "29 Other" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp029x 01 "01 Broken bone or fracture" 02 "02 Sprain, strain, or twist" 03 "03 Cut" 04 "04 Scrape" 05 "05 Bruise" 06 "06 Burn" 07 "07 Insect bite" 08 "08 Animal bite" 09 "09 Other" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp030x 00 "00 No second response" 01 "01 Broken bone or fracture" 02 "02 Sprain, strain, or twist" 03 "03 Cut" 04 "04 Scrape" 05 "05 Bruise" 06 "06 Burn" 07 "07 Insect bite" 08 "08 Animal bite" 09 "09 Other" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp037x 1 "1 Yes" 2 "2 No" 7 "7 Refused" 8 "8 Not ascertained" 9 "9 Don't know" ; label define inp044x 95 "95 95+ nights" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp046x 1 "1 The driver of a motor vehicle" 2 "2 A passenger in a motor vehicle" 3 "3 A pedestrian" 4 "4 A bicycle rider or tricycle rider" 5 " 5 The rider of a scooter, skateboard, skates, or other non-motorized vehicle" 7 "7 Refused" 8 "8 Not ascertained" 9 "9 Don't know" ; label define inp047x 01 "01 Passenger car" 02 "02 Passenger truck, such as a pickup truck, van, or SUV" 03 "03 Bus" 04 " 04 Large commercial truck, such as a semi-truck, big rig, or 18 wheeler" 05 "05 Motorcycle (including mopeds and minibikes)" 06 "06 All terrain vehicle or ski/snow-mobile" 07 "07 Farm equipment (such as a tractor)" 08 "08 Industrial or construction vehicle" 09 "09 Other" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp050x 01 "01 Stairs, steps, or escalator" 02 "02 Floor or level ground" 03 "03 Curb (including sidewalk)" 04 "04 Ladder or scaffolding" 05 "05 Playground equipment" 06 "06 Sports field, court, or rink" 07 "07 Building or other structure" 08 "08 Chair, bed, sofa, or other furniture" 09 "09 Bathtub, shower, toilet, or commode" 10 "10 Hole or other opening" 11 "11 Other" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp051x 00 "00 No second response" 01 "01 Stairs, steps, or escalator" 02 "02 Floor or level ground" 03 "03 Curb (including sidewalk)" 04 "04 Ladder or scaffolding" 05 "05 Playground equipment" 06 "06 Sports field, court, or rink" 07 "07 Building or other structure" 08 "08 Chair, bed, sofa, or other furniture" 09 "09 Bathtub, shower, toilet, or commode" 10 "10 Hole or other opening" 11 "11 Other" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp052x 1 "1 Slipping or tripping" 2 "2 Jumping or diving" 3 "3 Bumping into an object or another person" 4 "4 Being shoved or pushed by another person" 5 " 5 Losing balance or having dizziness (becoming faint or having a seizure)" 6 "6 Other" 7 "7 Refused" 8 "8 Not ascertained" 9 "9 Don't know" ; label define inp053x 1 "1 Swallowing a drug or medical substance mistakenly or in overdose" 2 "2 Swallowing or touching a harmful solid or liquid substance" 3 "3 Inhaling harmful gases or vapors" 4 "4 Eating a poisonous plant or other substance mistaken for food" 5 "5 Being bitten by a poisonous animal" 6 "6 Other, please specify" 7 "7 Refused" 8 "8 Not ascertained" 9 "9 Don't know" ; label define inp054x 01 "01 Driving or riding in a motor vehicle" 02 "02 Working at a paid job" 03 "03 Working around the house or yard" 04 "04 Attending school" 05 "05 Unpaid work (such as volunteer work)" 06 "06 Sports and exercise" 07 "07 Leisure activity (excluding sports)" 08 "08 Sleeping, resting, eating, or drinking" 09 "09 Cooking" 10 "10 Being cared for (hands-on care from other person)" 11 "11 Other" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp055x 00 "00 No second response" 01 "01 Driving or riding in a motor vehicle" 02 "02 Working at a paid job" 03 "03 Working around the house or yard" 04 "04 Attending school" 05 "05 Unpaid work (such as volunteer work)" 06 "06 Sports and exercise" 07 "07 Leisure activity" 08 "08 Sleeping, resting, eating, or drinking" 09 "09 Cooking" 10 "10 Being cared for (hands on care from other person)" 11 "11 Other" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp056x 01 "01 Home (inside)" 02 "02 Home (outside)" 03 "03 School (not residential)" 04 "04 Child care center or preschool" 05 "05 Residential institution (exclude hospital)" 06 "06 Health care facility (include hospital)" 07 "07 Street or highway" 08 "08 Sidewalk" 09 "09 Parking lot" 10 "10 Sport facility, athletic field, or playground" 11 " 11 Shopping center, restaurant, store, bank, gas station, or other place of busi ness" 12 "12 Farm" 13 "13 Park or recreation area (include bike or jog path)" 14 "14 River, lake, stream, or ocean" 15 "15 Industrial or construction area" 16 "16 Other public building" 17 "17 Other" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp057x 00 "00 No second response" 01 "01 Home (inside)" 02 "02 Home (outside)" 03 "03 School (not residential)" 04 "04 Child care center or preschool" 05 "05 Residential institution (exclude hospital)" 06 "06 Health care facility (include hospital)" 07 "07 Street or highway" 08 "08 Sidewalk" 09 "09 Parking lot" 10 "10 Sport facility, athletic field, or playground" 11 " 11 Shopping center, restaurant, store, bank, gas station, or other place of busi ness" 12 "12 Farm" 13 "13 Park or recreation area (include bike or jog path)" 14 "14 River, lake, stream, or ocean" 15 "15 Industrial or construction area" 16 "16 Other public building" 17 "17 Other" 97 "97 Refused" 98 "98 Not ascertained" 99 "99 Don't know" ; label define inp058x 1 "1 Full-time" 2 "2 Part-time" 3 "3 Not employed" 7 "7 Refused" 8 "8 Not ascertained" 9 "9 Don't know" ; label define inp059x 1 "1 None" 2 "2 Less than one day" 3 "3 One to five days" 4 "4 Six or more days" 7 "7 Refused" 8 "8 Not ascertained" 9 "9 Don't know" ; label define inp060x 1 "1 Full-time" 2 "2 Part-time" 3 "3 Not a student" 7 "7 Refused" 8 "8 Not ascertained" 9 "9 Don't know" ; * ASSOCIATE VARIABLES WITH VALUE LABEL DEFINITIONS; label values rectype inp001x; label values ipdatem inp008x; label values ipdatey inp009x; label values ipdateno inp010x; label values ipdatetp inp011x; label values ipdatemt inp012x; label values rpckdmr inp013x; label values edipbr inp017x; label values impmeth inp018x; label values mumon inp019x; label values etflg inp021x; label values beiflg inp022x; label values icaus inp023x; label values ecaus inp024x; label values ijbody1 inp025x; label values ijbody2 inp026x; label values ijbody3 inp027x; label values ijbody4 inp028x; label values ijtype1a inp029x; label values ijtype1b inp030x; label values ijtype2a inp029x; label values ijtype2b inp030x; label values ijtype3a inp029x; label values ijtype3b inp030x; label values ijtype4a inp029x; label values ijtype4b inp030x; label values ppcc inp037x; label values ipev inp037x; label values iper inp037x; label values ipdo inp037x; label values ippchcp inp037x; label values ipoth inp037x; label values iphosp inp037x; label values ipihno inp044x; label values imtraf inp037x; label values imvwho inp046x; label values imvtyp inp047x; label values isbelt inp037x; label values ihelmt inp037x; label values ifall1 inp050x; label values ifall2 inp051x; label values ifallwhy inp052x; label values ppois inp053x; label values ipwhat1 inp054x; label values ipwhat2 inp055x; label values ipwher1 inp056x; label values ipwher2 inp057x; label values ipemp inp058x; label values ipwkls inp059x; label values ipstu inp060x; label values ipscls inp059x; * DISPLAY OVERALL DESCRIPTION OF FILE; describe; * DISPLAY A TEST TABLE FROM THE FILE; tabulate rectype [fweight= wtfa]; save injpoiep, replace; #delimit cr * data file is stored in injpoiep.dta * log file is stored in injpoiep.log log close