Description Usage Arguments Value Examples
View source: R/forest_variable_importance.R
Returns the random forest variable importance based on the permutation accuracy measure, which is calculated as the difference in mean squared error between the original data and from randomly permuting the values of a variable.
1 | varImpCoeff(forest, removeIntercept = TRUE, method = "oob")
|
forest |
a random forest, generated from splineForest() |
removeIntercept |
a boolean value, TRUE if you want to exclude the intercept in the calculations, FALSE otherwise. |
method |
the method to be used. This must be one of "oob" (out of bag), "all", "itb" (in the bag). |
a matrix of variable importance metrics.
1 | importanceMatrix <- varImpCoeff(forest, removeIntercept=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.