[R] predict.rpart help

2011-03-23 Thread Osei Poku
Hi Everyone, Is there a way to get predict.rpart() to return the nodes reached by the new examples in addition to the predicted probabilities it already returns? In other words, I would like to know the leaf node in the tree object that each new example data drops down to. Thanks in advance fo

[R] Corrupt trees

2011-03-23 Thread Osei Poku
Hi Everyone, I have been using the "tree" package for a while with no problems until now. When I run predict(tree, newdata), I get an error with the message "Corrupt tree" for about 50% of the trees that I generate with tree. For other trees, the predict function completes with no errors. I h

[R] predict.rpart help

2011-03-23 Thread Osei Poku
Hi Everyone, Is there a way to get predict.rpart() to return the nodes reached by the new examples in addition to the predicted probabilities it already returns? In other words, I would like to know the leaf node in the tree object that each new example data drops down to. Thanks in advance fo

[R] Corrupt trees

2011-03-23 Thread Osei Poku
Hi Everyone, I have been using the "tree" package for a while with no problems until now. When I run predict(tree, newdata), I get an error with the message "Corrupt tree" for about 50% of the trees that I generate with tree. For other trees, the predict function completes with no errors. I h

Re: [R] Lattice: no grid name space

2009-08-31 Thread Theophilus Osei-Poku
Can some one please help me out with this? Package 'grid' does not have a name space. The lattice package does not work because of this. Kind regards, Theophilus . === The content of this message may contain the private views and opinions