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

viviUpdate

viviUpdate


Description

Creates a matrix displaying updated variable importance on the diagonal and variable interaction on the off-diagonal.

Usage

viviUpdate(mat, newImp)

Arguments

mat

A matrix, such as that returned by vivi.

newImp

A named vector of variable importances.

Value

A matrix of values, of class vivid, with updated variable importances.

Examples

f <- lm(Sepal.Length ~ ., data = iris[, -5])
m <- vivi(iris[, -5], f, "Sepal.Length")
corimp <- abs(cor(iris[, -5])[1, -1])
viviUpdate(m, corimp) # use correlation as updated importance

vivid

Variable Importance and Variable Interaction Displays

v0.1.0
GPL (>= 2)
Authors
Alan Inglis [aut, cre], Andrew Parnell [aut], Catherine Hurley [aut]
Initial release

We don't support your browser anymore

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