[R] Sensitivity and specificity in multi-class problems

From: Schäfer Christian <c.schaefer_at_dkfz-heidelberg.de>
Date: Sat, 19 May 2007 21:38:07 +0200


Hi,

I'm relative new to R.
I'm looking for a convenient way to calculate sensitivity and specificity in machine-learning models (SVM, ...). In a two-class case it's quite simple by calculating the TP, TN, FP, FN rates once but in the multi-class case I have to do it as often as there exist different classes (for each class).
Of course I could do it manually in a for-loop or so. But is there a more convenient way? Perhaps on the basis of a confusion table?

Thanks in advance.

Christian Schaefer



R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat 19 May 2007 - 19:42:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 19 May 2007 - 20:34:40 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.