query.rf.pred.val: Identify corresponding observed values for the response variable under the
terminal nodes for a random forest model by ranger
Description
The observed values (for the response variable) constituting the terminal
node associated with each observation are queried using the ranger
object and the training data.
The parameter keep.inbag = TRUE should be applied to call to
ranger.