splitstats: Stats about a tree's splits.

Description Usage Arguments Value Examples

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)


Search within the itree package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.