Description Usage Arguments Details Value Author(s) Examples
Calculates a cross-tabulation of observed and predicted classes with associated statistics.
1 | confmatrix(actuals, preds)
|
actuals |
a numeric vector |
preds |
a numeric vector |
confmatrix
A table same as caret::ConfusionMatrix
Jayachandra N
1 | confmatrix(c(1,1,1,0), c(1,1,0,0))
|
Registered S3 method overwritten by 'quantmod':
method from
as.zoo.data.frame zoo
Confusion Matrix and Statistics
Reference
Prediction 0 1
0 1 1
1 0 2
Accuracy : 0.75
95% CI : (0.1941, 0.9937)
No Information Rate : 0.75
P-Value [Acc > NIR] : 0.7383
Kappa : 0.5
Mcnemar's Test P-Value : 1.0000
Sensitivity : 1.0000
Specificity : 0.6667
Pos Pred Value : 0.5000
Neg Pred Value : 1.0000
Prevalence : 0.2500
Detection Rate : 0.2500
Detection Prevalence : 0.5000
Balanced Accuracy : 0.8333
'Positive' Class : 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.