Re: [R] rpart - predict terminal nodes for new observations

2012-05-18 Thread tudor
Hi Uwe: Thanks a lot for your reply. I contemplated the use of the predict() function but realized that it could not return what I needed (i.e., the terminal nodes and not the classes). I went back to the post of Professor Ripley (http://tolstoy.newcastle.edu.au/R/e4/help/08/07/17702.html) and

Re: [R] rpart - predict terminal nodes for new observations

2012-05-16 Thread Uwe Ligges
On 15.05.2012 16:30, tudor wrote: Dear useRs: Is there a way I could predict the terminal node associated with a new data entry in an rpart environment? In the example below, if I had a new data entry with an AM of 5, I would like to link it to the terminal node 2. My searches led to http://to

[R] rpart - predict terminal nodes for new observations

2012-05-15 Thread tudor
Dear useRs: Is there a way I could predict the terminal node associated with a new data entry in an rpart environment? In the example below, if I had a new data entry with an AM of 5, I would like to link it to the terminal node 2. My searches led to http://tolstoy.newcastle.edu.au/R/e4/help/08/07