02-06-2013 04:53 PM
Hi Everyone, I am interested in learning how to write up SAS code to calculate sensitivity and specificity in my confusion matrix (5X5 table) below. Any help would be greatly appreciated .
Syndrome Diarrheal-toxin EC Salmonella Viral Vomiting-toxin
Diarrheal-toxin 50 1 0 2 0
EC 0 25 8 0 0
Salmonella 1 20 252 6 1
Viral 4 0 0 786 39
Vomiting-toxin 2 0 0 0 41
Thank you in advance
02-06-2013 05:02 PM
Hi Reeza, sorry I am defining mine as those syndrome outbreaks that are correctly classified in their respective program. For example, I calculate the sensitivity of diarrheal-toxin manually to be 94.3% (50/53).
02-06-2013 05:32 PM
I don't recall specificity either (and don't feel like looking it up) but the general idea for sensitivity is simple enough.
array cause(5) diarrheal ec salmonella viral vomit;
02-06-2013 05:39 PM
Thank you sorry. I should have fully place the definitions up-my apologies but specificity is the probability of the syndromal outbreaks negative for a particular program given that it is not correctly classifed.