BEST {BESTree}R Documentation

Main function of the package. It produces Classification Trees with Branch-Exclusive variables.

Description

Main function of the package. It produces Classification Trees with Branch-Exclusive variables.

Usage

BEST(Data, Size, VA)

Arguments

Data

A data set (Data Frame): Can take on both numerical and categorical predictors. Last column of the data set must be the Repsonse Variable (Categorical Variables only)

Size

Minimal Number of Observation within a leaf needed for partitionning

VA

Variable Availability structure

Value

A BEST object with is a list containing the resulting tree, row numbers for each regions and the split points

Examples

n <- 1000
Data <- BESTree::Data[1:n,]
d <- ncol(Data)-1
VA <- ForgeVA(d,1,0,0,0)
Size <- 50
Fit <- BESTree::BEST(Data,Size,VA)

[Package BESTree version 0.5.2 Index]