Code Monkey home page Code Monkey logo

vibe's Introduction

vibe

R-CMD-check CRAN status

The acronym vibe stands for Variable Importance BEyond linear models.

The package computes two different variable importance metrics for three model classes:

  • Generalised Linear Models (glm class, R base)
  • Generalised Additive Models (gam class, mgcv package)
  • Generalised Additive Models for Location, Scale and Shape (gamlss class, gamlss package)

Installation

You can install the development version of vibe from GitHub with:

# install.packages("devtools")
devtools::install_github("Stan125/vibe")

Why?

Significance assessments of single variables are part of every classical regression modeling toolset, but they fail at displaying which variables contribute the most in explaining the target variable, since comparisons cannot reasonably be made. The software package vibe implements two different methods for ranking the impact of our explanatory variables on the dependent variable ´y´:

  • Hierarchical Partitioning (Chevan & Sutherland, 1991)
  • Relative Weights (Johnson, 2000)

To obtain the first metric, all submodels are computed and the average reduction/increase in the goodness of fit is calculated. This is the most complete metric and gives the option to use non-linear effects like penalized splines etc. Relative Weights is an approximation to Hierarchical Partitioning which is useful in cases with lots of covariates, since it is much faster. The approximation works through orthogonalization of the design matrix which is then used for an orthogonal model. The results of the orthogonal model are then reweighted using standardized coefficients of the original model.

Example

This is a basic example which shows you how to solve a common problem:

library("vibe")

glm_bin <- glm(formula = stunting ~ ., data = vibe::india)
hp_glm <- vibe(glm_bin, metric = "hp", gofmetric = "R2e", progress = FALSE)
plot(hp_glm)

vibe's People

Contributors

stan125 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

vibe's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.