prune.cc {cubt} | R Documentation |
Prune a cubt tree using cost complexity pruning.
prune.cc(obj,newdata=NULL,nleaves=NULL,eps=1e-6)
obj |
A CUBT tree. |
newdata |
Test sample for pruning |
nleaves |
Number of leaves |
eps |
Precision value |
Cost complexity pruning like in CART
Badih Ghattas
#See cubt help.