[R] confusion matrix
Shi, Tao
shidaxia at yahoo.com
Tue Mar 8 21:22:49 CET 2011
Hi list,
Is there already a function somewhere to output the confusion matrix from two
input vectors? "table" always automatically delete rows or columns with all
0's. For example, I would like the columns for "10" and "30" added back.
Thanks!
...Tao
20 40 50 60 70 80 90 100
10 0 0 1 0 0 0 1 0
20 1 2 0 4 0 0 0 1
30 0 0 0 0 0 0 1 1
40 0 0 1 1 2 0 0 0
50 0 1 0 0 0 1 0 0
60 0 0 0 0 0 0 1 1
70 0 0 1 1 1 1 1 1
80 0 1 0 0 0 0 0 1
90 0 0 0 0 0 0 0 3
100 0 0 0 0 1 0 0 3
More information about the R-help
mailing list