I built a classification tree using the CHAID algorithm implemented in a package in R. I'm trying to explain a variable which can be equal to 41 different values. At every terminal node, when I plot my tree, the distribution of the values of the variable to explain is printed.
I would like to get informations of the distributions, for example for the terminal node 2, that for 18% of the initial panel, the variable to explain is 3, for 12% it is 4, etc.
Does anyone know how to get that? If the information is drawn, it must exist somewhere, but I couldn't find an easy way to get it.