treepruner: Prune a tree

Description Usage Arguments Value

Description

Prune an initial rpart tree by "c-standard-error" rule.

Usage

1
treepruner(tree, c)

Arguments

tree:

A initial tree fitted by rpart, needs to an rpart object.

c:

A scalar to prune the tree by selecting the tree with minum cross-validation error plus the standard error multiplied by c.

Value

The pruned tree, also an rpart object.


XinruLI/FEmrt documentation built on May 9, 2019, 11:06 p.m.