Compute the permutation importance of a group from a modified CARTGV tree. Used only by the function rfgv
when grp.importance=TRUE.
grpimpperm.rf(num_group, data, oobsamples, group, tree, impurityacc)
num_group | index of the considered group |
---|---|
data | a data frame containing all observation included in the training data set. |
oobsamples | a vector containing the indices of the observations that are not included in the sample used to build the modified CARTGV tree. |
group | a vector with the group number of each variable. (WARNING : if there are " |
tree | the output of the function |
impurityacc | the accurancy value of the modified CARTGV tree. |
DecreaseAcc the decrease in accurance from permuting the values of the considered group.