get.splitvar {TWIX} | R Documentation |
Method for getting split variables from a single tree.
Description
This function extracts a split variables from a single.tree
object.
Usage
get.splitvar(x, sq = 1:length(x$trees),parm = "Splitvar")
Arguments
x |
an object of class TWIX generated by
TWIX |
sq |
Integer vector indicating for which trees a split variables
are required. |
parm |
Which information must be returned? This can be "Splitvar" , "Split" or "Dev" |
See Also
TWIX
, get.tree
, predict.TWIX
Examples
data(olives)
TreeFR <- TWIX(Area~.,data=olives,topN=c(2,1),method="local",level=5)
TreeSG <- get.splitvar(TreeFR,sq=1)
TreeSG
get.tree(TreeFR)
[Package
TWIX version 0.2.6
Index]