splitstats {itree} | R Documentation |
Computes some quantities about the variables used in the splits of an
itree
object. This is new to itree.
splitstats(tree,featlist=NULL)
tree |
an |
featlist |
A list of features to compute statistics of. Typically set to |
A data frame with each row being a feature and each column being a statistic about how that feature is used in the tree.
require(mlbench); data(BostonHousing) #fit a tree: cart <- itree(medv~.,BostonHousing,minsplit=25,minbucket=25,cp=0) splitstats(cart)