I want to get classification probabilities of each class by each tree in the randomForest.
(1) This outputs individual outputs but its type is response, not probabilities:
predict(rf_cl, newdata, predict.all=TRUE)$individual
(2) This outputs probabilities but it belongs to the forest not all trees:
predict(rf_cl, newdata, type="prob")
(3) When I tried this, I got the same output as the first one.
predict(rf_cl, newdata, predict.all=TRUE, type="prob")$individual
I am searching for a long time on net. But no use. Please help or try to give some ideas how to achieve this. Thanks in advance.