importance.wsrf: Extract Variable Importance Measure

Description Usage Arguments Details Value See Also


This is the extractor function for variable importance measures as produced by wsrf.


## S3 method for class 'wsrf'
importance(x, type=NULL, class=NULL, scale=TRUE, ...)



an object of class wsrf.


either 1 or 2, specifying the type of importance measure (1=mean decrease in accuracy, 2=mean decrease in node impurity).


for classification problem, which class-specific measure to return.


for permutation based measures, should the measures be divided their “standard errors”?


not used.


Here are the definitions of the variable importance measures. The first measure is computed from permuting OOB data: For each tree, the prediction error on the out-of-bag portion of the data is recorded. Then the same is done after permuting each predictor variable. The difference between the two are then averaged over all trees, and normalized by the standard deviation of the differences.

The second measure is the total decrease in node impurities from splitting on the variable, averaged over all trees. The node impurity is measured by the Information Gain Ratio index.


A matrix of importance measure, one row for each predictor variable. The column(s) are different importance measures.

See Also


Search within the wsrf package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.