sp.slave {TWIX}R Documentation

Internal functions of TWIX.

Description

Trees with extra splits

Usage

sp.slave(rsp, m, test.data, Dmin = 0.01, minsplit = 20,
    minbucket=round(minsplit/3),topN = 1, method = "deviance",
    topn.method = "complete", level = 3, lev = 0, st = 1,
    tol = 0.1, K = 0 , oldspvar=0)

Arguments

rsp a response variable.
m a dataframe (training data).
test.data a data frame containing new data.
method Which split points will be used? This can be "deviance" (default), "grid" or "local". If the method is set to: local the program uses the local maxima of the split function(entropy), deviance all values of the entropy, grid grid points.
topn.method one of "complete"(default) or "single". A specification of the consideration of the split points. If set to "complete" it uses split points from all variables, else it uses split points per variable.
minsplit the minimum number of observations that must exist in a node.
minbucket the minimum number of observations in any terminal <leaf> node.
Dmin the minimum improvement on entropy by splitting.
topN a integer vector. How many splits will be selected and at which level? If length 1, the same size of splits will be selected at each level. If length > 1, for example topN=c(3,2), 3 splits will be chosen at first level, 2 splits at second level and for all next levels 1 split.
level maximum depth of the trees. If level set to 1, trees consist of root node.
st step parameter for method "grid".
tol parameter, which will be used, if topn.method is set to "single".
lev Internal parameter.
K k-fold cross-validation.
oldspvar internal parameter.

See Also

TWIX, predict.TWIX,


[Package TWIX version 0.2.1 Index]