Linear Model variable importance plot
Usage
# S3 method for class 'lm'
importance(model_final, model_null, dict = NA, ...)
Value
an object of type importance_plot
- type
the type of importance plot
- data
the importance data required for the plot
Examples
gtest <- lm(mpg ~ cyl*wt*hp + gear + carb, data=mtcars)
gtestreduced <- lm(mpg ~ 1, data=mtcars)
imp <- importance(gtest, gtestreduced)
plot(imp)
gtest <- lm(mpg ~ cyl + wt + hp + gear + carb, data=mtcars)
gtestreduced <- lm(mpg ~ 1, data=mtcars)
imp <- importance(gtest, gtestreduced)
plot(imp)