Home →
Techniques and Tips →
PrecisionTree →
Insert a Node in a Decision Tree
16.9. Insert a Node in a Decision Tree
Applies to: PrecisionTree 5.x–7.x
How can I add a node within a branch when using PrecisionTree—in other words, how do I create another decision level in the middle of a tree?
In PrecisionTree 6.x and newer, right-click on any node and select Insert Node. A new node will be inserted to the left of the selected node.
In PrecisionTree 5.x, follow this procedure:
- Copy the portion of the tree which will be to the right of the new node by right-clicking on the node and selecting Copy SubTree.
- Create a new tree to save the contents of the copied sub-tree by clicking on the Create New Decision Tree button and selecting a blank cell. When the tree options dialog appears, click OK.
- Right-click on the end node of the tree you just created and select Paste SubTree.
- Delete the original subtree by right-clicking on the node and selecting Delete SubTree.
- Create your new node where the subtree was just deleted.
- Right-click on the end-node of the new node and select Paste SubTree.
- Delete the decision tree that you created to save the subtree by right-clicking on the tree name and selecting Model » Delete.
Last edited: 2015-09-04