Stats about a tree's splits.

Description

Computes some quantities about the variables used in the splits of an itree object. This is new to itree.

Usage

1
splitstats(tree,featlist=NULL)

Arguments

tree

an itree object.

featlist

A list of features to compute statistics of. Typically set to NULL, in which case we figure out the features using the itree object itself.

Value

A data frame with each row being a feature and each column being a statistic about how that feature is used in the tree.

Examples

1
2
3
4
require(mlbench); data(BostonHousing)
#fit a tree:
cart <- itree(medv~.,BostonHousing,minsplit=25,minbucket=25,cp=0)
splitstats(cart)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.