Description Usage Arguments Details Value Examples
vt.tree is a wrapper of VT.tree.class and 
VT.tree.reg. With parameter tree.type, any of these two class 
can be used with its own parameter.
| 1 2 | 
| tree.type | must be a character. "class" for classification tree, "reg" for regression tree. | 
| vt.difft | 
 | 
| sens | must be a character c(">","<"). See  | 
| threshold | must be numeric. It can be a unique value or a vector. If 
numeric vector, a list is returned. See  | 
| screening | must be logical. If TRUE, only varimp variables of VT.object is used to create the tree. | 
| ... | rpart() function parameters. Can be used for any tree.type. | 
See VT.tree, VT.tree.class and 
VT.tree.reg classes.
VT.tree or a list of VT.tree depending on threshold 
dimension. See examples.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(sepsis)
vt.o <- vt.data(sepsis, "survival", "THERAPY", T)
# inside model :
vt.f <- vt.forest("one", vt.o)
# use classification tree
vt.tr <- vt.tree("class", vt.f, threshold = c(0.01, 0.05))
# return a list
class(vt.tr)
# access one of the tree
tree1 <- vt.tr$tree1
# return infos
# vt.tr$tree1$getInfos()
# vt.tr$tree1$getRules()
# use vt.subgroups tool:
subgroups <- vt.subgroups(vt.tr)
  
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.