[R] R-help Digest, Vol 118, Issue 20

Terry Therneau therneau at mayo.edu
Thu Dec 20 17:28:27 CET 2012


I don't know of one.  If building your own you could use rpart with the "maxdepth=1" as 
the tool to find the best split at each node.
Terry Therneau


On 12/20/2012 05:00 AM, r-help-request at r-project.org wrote:
> Hi,
>
> I've searched R-help and haven't found an answer. I have a set of data from which I can create a classification tree using
> rpart. However, what I'd like to do is predefine the blank structure of the binary tree (i.e., which nodes to include) and then use a package like rpart to fit for the optimal splitting criteria at each of the predefined nodes.
>
> Does such a package exist?
>
> Thanks,
> Lee
>



More information about the R-help mailing list