I would like to know which is the path that a prediction has followed in a model C5.0 in R. For instance, if the dataset has 4 variables, the aim of the code is to obtain which of these four variables have been checked by the tree in order to predict. The results have to be: 1 2 3 4 Test1 1 0 1 0
In this example, the classification of the first observation of the test has been done only taking into account the variables 1 and 3
Thank you
I have no idea of how to do it...