LOADING DATA INTO R ENVIRONMENT

TRAINING THE BAGGING MODEL

Running the Training Model

## Bagged CART 
## 
## 8001 samples
##    3 predictor
##    2 classes: 'No', 'Yes' 
## 
## No pre-processing
## Resampling: None

Variable Importance in Bagging Model

TESTING THE BAGGING MODEL

Confusion Matrix at 50% Cut-Off Probability

## Confusion Matrix and Statistics
## 
##           Reference
## Prediction  Yes   No
##        Yes   29   16
##        No    37 1917
##                                           
##                Accuracy : 0.9735          
##                  95% CI : (0.9655, 0.9801)
##     No Information Rate : 0.967           
##     P-Value [Acc > NIR] : 0.05520         
##                                           
##                   Kappa : 0.5094          
##                                           
##  Mcnemar's Test P-Value : 0.00601         
##                                           
##             Sensitivity : 0.43939         
##             Specificity : 0.99172         
##          Pos Pred Value : 0.64444         
##          Neg Pred Value : 0.98106         
##              Prevalence : 0.03302         
##          Detection Rate : 0.01451         
##    Detection Prevalence : 0.02251         
##       Balanced Accuracy : 0.71556         
##                                           
##        'Positive' Class : Yes             
##