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

Variable_importance

Variable Importance plot


Description

Creates a input variable importance plot

Usage

Variable_importance(model, top = NULL, var_names = NULL)

Arguments

model

list containing a model of class "hs_rulefit".

top

If a integer number is given only shows the top most important variables in the plot

var_names

optional vector with the variable names to be shown in plot.

Examples

#Fit HorseRuleFit
x = matrix(rnorm(5000), ncol=10)
y = apply(x,1,function(x)sum(x[1:5])+rnorm(1))
hrres = HorseRuleFit(X = x, y=y,
                     thin=1, niter=100, burnin=10,
                     L=5, S=6, ensemble = "both", mix=0.3, ntree=100,
                     intercept=FALSE, linterms=1:10,
                     alpha=1, beta=2, linp = 1, restricted = 0)
Variable_importance(hrres)

horserule

Flexible Non-Linear Regression with the HorseRule Algorithm

v1.0.0
GPL-3
Authors
Malte Nalenz <malte.nlz@googlemail.com>, Mattias Villani <mattias.villani@liu.se>
Initial release
2018-03-21

We don't support your browser anymore

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