prune.cc {cubt}R Documentation

Prune a cubt tree using cost complexity pruning.

Description

Prune a cubt tree using cost complexity pruning.

Usage

prune.cc(obj,newdata=NULL,nleaves=NULL,eps=1e-6)

Arguments

obj

A CUBT tree.

newdata

Test sample for pruning

nleaves

Number of leaves

eps

Precision value

Details

Cost complexity pruning like in CART

Author(s)

Badih Ghattas

Examples

#See cubt help. 

[Package cubt version 3.2 Index]