varimp: Variable Importance

Description Usage Arguments Value See Also Examples

View source: R/ML_C50Model.R View source: R/ML_GLMModel.R View source: R/ML_GAMBoostModel.R View source: R/varimp.R View source: R/ML_AdaBagModel.R View source: R/ML_AdaBoostModel.R View source: R/ML_GLMBoostModel.R View source: R/ML_SurvRegModel.R

Description

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

Usage

1
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

plot

Examples

1
2
3
4
5
6
7
8
## 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 documentation built on Aug. 20, 2021, 1:10 a.m.