Peter -
(Just gessing about the structure of rpart objects ...) How about
tr.totpart.pruned$frame <- cbind(tr.totpart.pruned$frame,
meanpart = exp(tr.totpart.pruned$frame$yval)-1)
This appends meanpart as an additional column of tr.totpart.pruned$frame.
After this step
Hello again
I have modeled a tree using rpart, with the DV being a log
transformation of the variable I am really interested in (I transformed
the DV due to extreme skewness). By default, text.rpart labels the
nodes with the value of yval, which in this case is not what I want; I'd
like the label