confusionMatrix(credit_test$GoodCredit,credit_prediction,positive = '1')
Confusion Matrix and Statistics
Reference
Prediction 0 1
0 183 24
1 53 40
Accuracy : 0.7433
95% CI : (0.69, 0.7918)
No Information Rate : 0.7867
P-Value [Acc > NIR] : 0.969332
Kappa : 0.3437
Mcnemar's Test P-Value : 0.001418
Sensitivity : 0.6250
Specificity : 0.7754
Pos Pred Value : 0.4301
Neg Pred Value : 0.8841
Prevalence : 0.2133
Detection Rate : 0.1333
Detection Prevalence : 0.3100
Balanced Accuracy : 0.7002
'Positive' Class : 1
如上,怎么提取最后的结果,比如,kappa,sensitivity,specificity等