imp | R Documentation |
rpart_ci()
trees
This function measures the variable importance for objects produced by rpart_ci()
imp(object, surrogates = TRUE, competes = FALSE, ...)
object |
an object of class |
surrogates |
should surrogate splits contribute to the importance calculation (logical)? Defaults to |
competes |
should competing splits contribute to the importance calculation (logical)? Defaults to |
... |
currently ignored. |
A data.frame with one row for each predictor variable (ordered by decreasing importance). The first column overall.importance
is the variable importance measure (the total decrease in node impurities) and the second column relative.importance
is the relative importance variable.
Saveria Willimes
Breiman, L., Friedman, J., Stone, C. J., & Olshen, R. A. (1984). Classification and regression trees. CRC press.
data(nigeria)
tree <-
rpart_ci(
cbind(wealth, zscore1) ~
quintile + ed + rural + region + male + bord + agechild + agemother,
data = nigeria,
weights = nigeria$weight,
type = "CI")
imp(tree, surrogates = FALSE, competes = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.