Description Usage Arguments Details Value References Examples
Calculate local vimp for each termianl node for prism or hprism tree.
1 |
l |
An rpart output for prism or hprism tree. |
hvar |
The hierarchical level variable for hprism tree, which is specified within double quotes. If unspecified, local vimp for prism tree is calculated. |
M |
Times of iterations for calculating local vimp, default is 30. |
dat |
The same data frame used to generate the prism or hprism object. |
cp.prism |
The same value specified as the one used to generated the prism or hprism object. |
Variable importance was originally designed for tree-based models using measures involving surrogate variables. Other measures based on mean overall improvement in node impurity for a tree have also been proposed. One interesting such measure is called variable importance (vimp) which uses a prediction error approach involving "noising-up" a variable at a time and examining the difference in prediction error when a variable is noised-up by permuting its value randomly, compared to prediction error under the original predictor. Variables with large vimp values are ranked highly in terms of variable importance. In our setting however, we want to understand the individual level variables that are driving each terminal node - so a local vimp (Lvimp). In order to do this, we must condition on the observations in a terminal node while we apply the noising-up procedure variable by variable and re-building the entire tree. Differences in prediction errors are evaluated only using those observations in the terminal node of interest.
A list with components
rawvalue: The actual value of local vimp for each terminal node and each splitting variable
rank: The rank order of spliiting variable for each terminal node
H. Ishwaran, “Variable importance in binary regression trees and forests,” Electronic Journal of Statistics, vol. 1, pp. 519–537, 2007.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.