powered by
Return the dept of a decision tree.
cartdepth(model)
The depth.
The decision tree.
CART, cartinfo, cartleafs, cartnodes, cartplot
CART
cartinfo
cartleafs
cartnodes
cartplot
require (datasets) data (iris) model = CART (iris [, -5], iris [, 5]) cartdepth (model)
Run the code above in your browser using DataLab