Hello there.  I have fitted a rpart model.
   > rpartModel <- rpart(y~., data=data.frame(y=y,x=x),method="class", ....)
   and  can  use  rpart$where  to  find  out the terminal nodes that each
   observations belongs.
   Now, I have a set of new data and used predict.rpart which seems to give
   only the predicted value with no information similar to rpart$where.
   May I know how to find out the terminal nodes that each new observations
   belongs to?
   Many thanks.
   ----
   Chua Siang Li
   Consultant - Operations Research
   Acceval Pte Ltd
   Tel: 6297 8740
   Email: [EMAIL PROTECTED]
   Website: www.acceval-intl.com
   This message and any attachments (the "message"...{{dropped:12}}
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to