koplsSensSpec {kopls} | R Documentation |
Calculates sensitivity and specificity values for classification in a class-wise fashion.
koplsSensSpec(trueClass, predClass)
trueClass |
Matrix of true class identifiers (integer). |
predClass |
Matrix of predicted class identifiers (integer). |
A list with the following properties:
TPtot |
Total true positive (TP) rate. |
FPtot |
Total false positive (FP) rate. |
TNtot |
Total true negative (TN) rate. |
FNtot |
Total false negative (FN) rate. |
sensTot |
Overall sensitivity. |
specTot |
Overall specificity. |
TP |
TP rate for each class. |
FP |
FP rate for each class. |
TN |
TN rate for each class. |
FN |
FN rate for each class. |
sens |
Sensitivity for each class. |
spec |
Specificity for each class. |
Ntot |
Total number of entries. |
Max Bylesjo and Mattias Rantalainen
Rantalainen M, Bylesjo M, Cloarec O, Nicholson JK, Holmes E and Trygg J. Kernel-based orthogonal projections to latent structures (K-OPLS), J Chemometrics 2007; 21:376-385. doi:10.1002/cem.1071.