print_hist_dt {lazy.tree}R Documentation

Description

Print Division History

Usage

print_hist_dt(obj, title = "", dump = 0)

Arguments

obj

The output of DecTree or list of nodes.

title

The title string

dump

= 1 to output result

Value

A list of a data frame hist and Valxj
where data frame hist consists of

Node the node number
PA the parent node number
VAR the regressor variable number to be used to divide the node
k the quantified variable number to be used
TH the threshold to be used
Valxc compact version of Valxj below.

and Valxj is a list of the values categorized as "LEFT" among the levels of categorical regressors used when splitting each node.

Examples

Xc <- data.frame(square$c1,square$c2)
res1 <- DecTree( square$Class4, Xc, maxdepth=4, print=0 )
print_hist_dt( res1$node, title="square" )


[Package lazy.tree version 0.1.6 ]