Learn R Programming

conTree (version 0.3-1)

prune: Prune a contrast tree

Description

Prune a contrast tree

Usage

prune(tree, thr = 0.1)

Value

a bottom-up pruned tree with splits corresponding to improvement less than threshold thr removed

Arguments

tree

a tree model object output from contrast

thr

a split improvement threshold, default is 0.1