Instructions: Step-by-Step Guide to Accessing NHAMCS-ED Public Use Data Files and Programs to Select Injury Records and Calculate Rates

SAS Statements for NHAMCS-ED External Cause of Injury Matrix

SAS statements for assigning external cause of injury codes to mechanism and intent of injury based on the ICD-9-CM external cause of injury matrix

Run the following statements:

IF (CAUSE1 GE 8000 AND CAUSE1 LE 9999) THEN DO;
CAUSEDET=substr(left(CAUSE1),1,3);
CAUSEDT4=substr(left(CAUSE1),1,4);
PERSINJ=substr(left(CAUSE1),4,4);
END;

along with SAS Statements for External Cause of Injury Morbidity Matrix in a SAS data step to assign external cause of injury codes to mechanism and intent of injury based on the ICD-9-CM external cause of injury matrix.