LOADING DATA INTO R ENVIRONMENT

TRAINING THE BAGGING MODEL

Variable Importance in Bagging Model

TESTING THE BAGGING MODEL

Confusion Matrix at 50% Cut-Off Probability

## Confusion Matrix and Statistics
## 
##          Actual
## Predicted   No  Yes
##       No  4293 1104
##       Yes  306  217
##                                           
##                Accuracy : 0.7618          
##                  95% CI : (0.7508, 0.7726)
##     No Information Rate : 0.7769          
##     P-Value [Acc > NIR] : 0.9972          
##                                           
##                   Kappa : 0.1245          
##                                           
##  Mcnemar's Test P-Value : <2e-16          
##                                           
##             Sensitivity : 0.16427         
##             Specificity : 0.93346         
##          Pos Pred Value : 0.41491         
##          Neg Pred Value : 0.79544         
##              Prevalence : 0.22314         
##          Detection Rate : 0.03666         
##    Detection Prevalence : 0.08834         
##       Balanced Accuracy : 0.54887         
##                                           
##        'Positive' Class : Yes             
##