varImp.SDTree | R Documentation |
This function extracts the variable importance of an SDTree. The variable importance is calculated as the sum of the decrease in the loss function resulting from all splits that use this covariate.
## S3 method for class 'SDTree'
varImp(object)
object |
an SDTree object |
A named vector of variable importance
Markus Ulmer
varImp.SDForest
SDTree
data(iris)
tree <- SDTree(Sepal.Length ~ Sepal.Width + Petal.Length + Petal.Width, iris, cp = 0.5)
varImp(tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.