利用Tree Node合并名义变量及筛选变量
- Collapsing Levels
- Change the maximum number of branches from a node from 2 to the number of levels of variable.
- Set the maximum depth of tree to 1.
- Set significance level to 1.That is to say, use a large P-value.
- Deactivate the Kass adjustment.
- Change the sub-tree option to the most leaves to prevent pruning.
- Change Model assessment measure from Automatic to Average profit.
- Selecting important variable
Importance is a weighted average of the reduction in Gini impurity for the surrogate splits using the jth input across all the internal nodes in the tree. The weights are the node sizes.
- Select the Basic tab,select Gini reduction for the splitting criterion.
- Change the maximum depth of the tree to 8 to allow a larger tree to grow.
- Select the Advanced tab and change the model assessment measure to Total Leaf Impurity(Gini index).
- Change the maximum depth of the tree to 8 to allow a larger tree to grow.
- Select the Advanced tab and change the model assessment measure to Total Leaf Impurity(Gini index).
- Select the Score tab and then the Variables subtab.
- Close the tree nide,saving changes when prompted.