varimp {MachineShop} | R Documentation |
Calculate measures of the relative importance of predictors in a model.
varimp(object, scale = TRUE, ...)
object |
model fit result. |
scale |
logical indicating whether importance measures should be scaled to range from 0 to 100. |
... |
arguments passed to model-specific variable importance functions. |
VarImp
class object.
## Requires prior installation of suggested package gbm to run ## Survival response example library(survival) gbm_fit <- fit(Surv(time, status) ~ ., data = veteran, model = GBMModel) (vi <- varimp(gbm_fit)) plot(vi)