performance.stats {OmicsMarkeR} | R Documentation |
perf.calc
)Calculates confusion matrix and ROC statistics comparing the results of the fitted models to the observed groups.
performance.stats(pred, obs)
pred |
vector of groups predicted by a fitted classification model |
obs |
vector of groups from the original dataset |
Returns confusion matrix and ROC performance statistics including Accuracy, Kappa, ROC.AUC, Sensitivity, Specificity, Positive Predictive Value, and Negative Predictive Value
caret function confusionMatrix