Hi guys,
I will be very grateful if you guys can do me a little favor on R. I am
calculating the sensitivity and specificity for a 2*2 matrix, such as
t
0 1
0 1427 110
1 271 166
My codes are: sens <- function(ct) { ct[2,2] / sum(ct[,2]) }
spec <- function(ct) { ct[1,1] / sum(ct[,1]) }
But it doesn't show any numerical results. Would you please help me to fix
it? Mnay thanks for your help.:)
Best regards,
Siqi
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.