Using a recursion function as auxiliar function, calculates the shattering coefficient for a rpart decision tree.
rpart.tree. A Decision tree generated by rpart package.
int. The # of samples to consider in dataset.
The calculus of the shattering coefficient.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.