importance | R Documentation |
importance
is a generic function for obtaining resampled variable
importance scores. The function invokes particular
methods
which depend on the class
of the first argument.
importance(object, ...)
## S3 method for class 'nested'
importance(object, ...)
## S3 method for class 'beset_rf'
importance(object, ...)
## S3 method for class 'part_depend'
importance(object, ...)
## S3 method for class 'variable_importance'
plot(x, p_max = 20, labels = NULL, max_import = NULL, ...)
object |
A model object for which variable importance scores are desired. |
... |
Additional named arguments that define the model selection rules.
See |
p_max |
Maximum number of predictors to include in variable importance plot |
labels |
(Optional) two-column |
max_import |
(Optional) numeric value specifying the maximum value of the x axis for the relative importance plot. Default is the upper limit of the largest importance score |
importance(nested)
: Determine variable importance for "nested"
beset_glm
and beset_elnet
objects
importance(beset_rf)
: Relative importance method for "beset_rf" objects
importance(part_depend)
: Relative importance based on partial dependence
rf <- beset_rf(Fertility ~ ., data = swiss)
importance(rf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.