Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

catsplit - Class: classregtree

Categorical splits used for branches in decision tree

Syntax

v=catsplit(t)
v=catsplit(t,j)

Description

v=catsplit(t) returns an n-by-2 cell array v. Each row in v gives left and right values for a categorical split. For each branch node j based on a categorical predictor variable z, the left child is chosen if z is in v(j,1) and the right child is chosen if z is in v(j,2). The splits are in the same order as nodes of the tree. Nodes for these splits can be found by running cuttype and selecting 'categorical' cuts from top to bottom.

v=catsplit(t,j) takes an array j of rows and returns the splits for the specified rows.

See Also

classregtree

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS