search for: obsxnum

Displaying 2 results from an estimated 2 matches for "obsxnum".

Did you mean: obsnum
2003 Jul 15
1
Tree question
...reiman Olshen et al. Classification and Regression Trees state "In a standard data structure [a tree] is invariant under all monotone transformations of individual ordered varaibles" (p. 57) However, I get very different results from tr.hh.pri <- rpart((log(YPRISX+1)~AGE+DRUGUSEY+SEX+OBSXNUM)) and tr.hh.pri <- rpart(YPRISX~AGE+DRUGUSEY+SEX+OBSXNUM) the former gives more splits and different splits. Some notes: The DV is a count variable, and highly skew, with some 0s, many 1s, and a long right tail out to 99. AGE ranges from 18-25 DRUGUSEY is ordered (hardest drug used) and OB...
2003 Jul 17
1
Rpart question - labeling nodes with something not in x$frame
I have a tree created with tr.hh.logcas <- rpart(log(YCASSX + 1)~AGE+DRUGUSEY+SEX+OBSXNUM +WINDLE, xval = 10) I would like to label the nodes with YCASSX rather than log(YCASSX + 1). But the help file for text in library rpart says that you can only use labels that are part of x$frame, which YCASSX is not. Is there a way to do what I want? Thanks in advance Peter Peter L. Flom, Ph...