Re: [R] Accessing terminal datasets in Ctree()

2016-05-02 Thread Achim Zeileis
On Mon, 2 May 2016, Preetam Pal wrote: Great, thank you so much Achim.But one issue, in case I do not know how many terminal nodes would be there, what do I do? Note that I do not need the datasets corresponding to the intermediate nodes only need the terminal datasets. With predict(ct, type =

Re: [R] Accessing terminal datasets in Ctree()

2016-05-02 Thread Preetam Pal
Again, really appreciate your help on this. Thanks, Achim. -Preetam On Tue, May 3, 2016 at 3:22 AM, Achim Zeileis wrote: > On Mon, 2 May 2016, Preetam Pal wrote: > > Great, thank you so much Achim.But one issue, in case I do not know how >> many >> terminal nodes would be there, what do I do? No

Re: [R] Accessing terminal datasets in Ctree()

2016-05-02 Thread Preetam Pal
Great, thank you so much Achim. But one issue, in case I do not know how many terminal nodes would be there, what do I do? Note that I do not need the datasets corresponding to the intermediate nodes only need the terminal datasets. Regards, Preetam On Tue, May 3, 2016 at 3:08 AM, Achim Zeileis w

Re: [R] Accessing terminal datasets in Ctree()

2016-05-02 Thread Achim Zeileis
On Mon, 2 May 2016, Preetam Pal wrote: Hi guys, If I am applying ctree() on a data (specifying some control parameters like maxdepth), is there a way I can programmatically access the (smaller) datasets corresponding to the terminal nodes in the tree? Say, if there are 7 terminal nodes, I need