BEST: Main function of the package. It produces Classification...

Description Usage Arguments Value Examples

View source: R/best.R

Description

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

Usage

1
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

1
2
3
4
5
6
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)

BESTree documentation built on Aug. 9, 2019, 5:07 p.m.