Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

varimp

Variable Importance


Description

Calculate measures of the relative importance of predictors in a model.

Usage

varimp(object, scale = TRUE, ...)

Arguments

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.

Value

VarImp class object.

See Also

Examples

## 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)

MachineShop

Machine Learning Models and Tools

v2.8.0
GPL-3
Authors
Brian J Smith [aut, cre]
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.