initTree: initTree

Description Usage Arguments Details Value Examples

Description

The function builds a tree object by generating the root node.

Usage

1
initTree(data, v.target, auto, theta)

Arguments

v.target

column name of the target variable in your dataset.

auto

default FALSE. If TRUE the tree builds up automatically.

theta

non-negative float or double; Improvement restriction when the tree is built automatically (auto = TRUE). Stops if the current best improvement is less than theta.

dataset

a data.frame object for the following model building.

Details

This function is a method to charge the best partitions as well as their related improvements.

Value

A tree object of class InitTreeR

Examples

1
tree <- initTree(dataset = data, v.target =income, auto = FALSE)

IntTreeR/IntTreeR documentation built on May 7, 2019, 6:38 a.m.