makebina {delt}R Documentation

Tranforms and evaluation tree to the tree object of R

Description

Evaluation trees are such trees that are implemented with "left" and "right" pointers. We transform this tree representation to the tree object of the package "tree", so that it can be plotted by "plot.tree" function from package "tree" or by "draw.tree" function from package "maptree".

Usage

makebina(et)

Arguments

et evaluation tree; result of "densplit", "eval.pick", "eval.cart", ...; see the documentation of "eval.cart"

Value

Returns an object of class tree.

Author(s)

Jussi Klemela

See Also

densplit, eval.pick

Examples

dendat<-sim.data(n=200,seed=5,type="mulmodII")
et<-densplit(dendat)
mb<-makebina(et)

set.seed(1)
dendat<-matrix(rnorm(20),10)  
et<-densplit(dendat,minobs=2)
mb<-makebina(et)

#library(tree)
#plot.tree(mb)

#library(maptree)
#draw.tree(mb)


[Package delt version 0.8.0 Index]