Re: [R] User defined split function in Rpart

2008-02-14 Thread Terry Therneau
The question is about the direction vector in rpart. There are (at least) two preferred ways to lay out a tree, wrt the question of which obs are sent left and which right. 1. Send the smaller y values to the left. In the final tree, there will be a graphical ordering with smaller

Re: [R] User defined split function in Rpart

2008-02-13 Thread R Help
Direction corresponds to goodness: for the split represented by goodness[i], direction[i]=-1 means that values less than the split at goodness[i] will go left, greater than will go right. If direction[i] = 1 then they will be sent to opposite sides. The long-and-short of it is that, for most tre

Re: [R] User defined split function in rpart

2008-02-11 Thread R Help
housing data frame within the user defined splitting > function? > > Any input would be highly appreciated! > > Thank you > Tobias Guennel > > > -Original Message- > From: Tobias Guennel [mailto:[EMAIL PROTECTED] > Sent: Monday, February 19, 2007 3:40 PM &