importance

0th

Percentile

Extract variable importance measure

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

Keywords
regression, classif, tree
Usage
## S3 method for class 'randomForest':
importance(x, type=2, class, ...)
Arguments
x
an object of class randomForest
type
either 1 or 2, specifying the type of importance measure (1=mean decrease in accuracy, 2=mean decrease in node impurity).
class
for classification problem, which class-specific measure to return.
...
not used.
Details

See the documentation for randomForest for explanation of how the importance measures are computed.

Value

  • A (named) vector of importance measure, one for each predictor variable.

See Also

randomForest, var.imp.plot

Aliases
  • importance
  • importance.default
  • importance.randomForest
Documentation reproduced from package randomForest, version 4.0-7, License: GPL version 2 or later

Community examples

Looks like there are no examples yet.