ForgeVA {BESTree}R Documentation

Quickly build the Available Variable list necessary for BEST This list contains details as to which variables is available for the partitioning. It also contains which variables are gating variables.

Description

Quickly build the Available Variable list necessary for BEST This list contains details as to which variables is available for the partitioning. It also contains which variables are gating variables.

Usage

ForgeVA(d, GV, BEV, Thresh = 0.5, Direc = 0)

Arguments

d

Number of predictors

GV

Gating variables

BEV

Branch-Exclusive Variables

Thresh

Threshold for Gates

Direc

Direction of Gates ( 1 means add variable if bigger than thresh)

Value

The list containing the Variable Availability structure

Examples

#This function can be used to set up the variable availability structure.
#Suppose we want to fit a regular decision tree on a data set containing d predictors
d <- 10
VA <- ForgeVA(d,1,0,0,0)
#Suppose now that predictor x5 is a binary gating variable for x4
#such that x4 is available if x5 = 1
GV <- 5 #The gating variable
BEV <- 4 #The Branch-Exclusive variable
Tresh = 0.5 #Value between 0 and 1
Direc = 1 #X4 is available if X5 is bigger than Tresh
VA <- ForgeVA(d,GV,BEV,Tresh,Direc)

[Package BESTree version 0.5.2 Index]