I have a binary classification problem and I would like to get the predicted class probabilities for both the classes. Something like this...
0 0.25 0.15
0 0.2 0.19
1 0.19 0.25
Each line contains the item's actual class, the predicted probability for membership of class-0, and the predicted probability for membership of class-1.I could get the predicted probability for class-1 using the predict function
predict(mod,newx=ValidX,type="response")
Please advice on how to get the probabilities for class-0. Thanks in advance.