- For the predict function, you can specify the type as response, prob, or node. If you specify the type as prob when using the predict function (for example, predict(... type="prob")), you will get exactly the same result as what treeresponse returns.