Date: Sun, 6 May 2007 19:45:36 -0400
Reply-To: Magda Tolea <mtolea@EPI.UMARYLAND.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Magda Tolea <mtolea@EPI.UMARYLAND.EDU>
Subject: ICD9 codes
Content-Type: text/plain; charset=ISO-8859-1
Hello,
Using National Hospital Dicharge Survey, I want to determine the count of
infections, for example, as first diagnosis, as well as any diagnosis (among
a total of 7).
I have tried:
*Create infectious and parasitic diseases group;
d1inf=0;
if '001' le substr(diag1,1,3) lt '140' then d1inf=1;
anyinf=0;
array d(7) diag1-diag7;
do i=1 to 7;
if '001' le substr(d(i),1,3) lt '140' then d1inf+1;
end;
but I got something like:
d1inf Frequency Percent Cumulative Cumulative
Frequency Percent
ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒfffffffffffffffffffffffffffff
0 678288 90.06 678288 90.06
1 49573 6.58 727861 96.65
2 20184 2.68 748045 99.33
3 4046 0.54 752091 99.86
4 818 0.11 752909 99.97
5 171 0.02 753080 100.00
6 30 0.00 753110 100.00
7 5 0.00 753115 100.00
Cumulative Cumulative
allinf Frequency Percent Frequency Percent
ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒffffffffffffff
0 753115 100.00 753115 100.00
What do you think I'm doing wrong? Thank you,
Magda Tolea