This function allows to estimate the importance of individual variables in a model unit of a diagnostic tool.
1 2 3 4
the path of the RData file where the model is saved
character vector. The metric(s) used to estimate variable
importance. The available choices are:
numeric. The number of most important variables to graphically represent
This functions estimates the variable importance of all the variables
included in the investigated model using the importance metric(s) specified
method argument. In this regard, the function is a wrapper around
the function generateFilterValuesData from the
mlr package with the
possibility to run multiple iterations for the metrics
ranger.permutation potentially in parallel (using
nCores larger than 1).
The second step performed by this function corresponds to the production of a
plot representing the importance of the most important variables. The
selection of the metrics is performed by ranking the importance metric values
and the number of variables to be represented is controlled by the argument
nVarToPlot. If several importance metrics are used, the selection is made
on the average rank of the variables over the different metrics.
a list with two elements:
varImp: the table with the importance
measure(s) for all variables and
varImpPlot a ggplot object representing
the importance of the most important variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.