makebina: Tranforms and evaluation tree to the tree object of R

Description Usage Arguments Value Author(s) See Also Examples

View source: R/delt.R View source: R/makebina.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

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
library(denpro)
dendat<-sim.data(n=100,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)

delt documentation built on May 30, 2017, 7:34 a.m.

Search within the delt package
Search all R packages, documentation and source code