Learn R Programming

itree (version 0.1)

splitstats: 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

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

Run this code
require(mlbench); data(BostonHousing)
#fit a tree:
cart <- itree(medv~.,BostonHousing,minsplit=25,minbucket=25,cp=0)
splitstats(cart)

Run the code above in your browser using DataLab