pred<-predict(model, test[,-k], type="prob") pred_1<-data.frame(pred$prob, Y=pred$class)
pred.rf<-predict(model, test[,-k], type="class") confusionMatrix(data=pred.rf, reference=test[,k], positive="No")