I have a dataset with profit as the target variable and about 100 different predictor variables (some binary, some continous and some character).
Is there a decision tree package in R that can be used that will give buckets (or end nodes) where profit is maximised (and preferably >0)?
Currently i have been using ctree from partykit package. The trees that are split invariably give good splits on the predictor variables, but the end-nodes invariably result in negative profit.
I am also having difficulty understanding the results at node end. These tend to be 'N=' and 'Error='. Is there some way to get 'profit=' instead so you can see what the best end node is?
Many thanks,