[R] Question re labels in r-part (continuation of a thread from a while back)

2003-12-19 Thread Peter Flom
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

Re: [R] Question re labels in r-part (continuation of a thread from a while back)

2003-12-19 Thread Thomas W Blackwell
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