vipscores function

VIP scores for PLS model

VIP scores for PLS model

Calculates VIP (Variable Importance in Projection) scores for predictors for given number of components and response variable.

vipscores(obj, ncomp = obj$ncomp.selected)

Arguments

  • obj: a PLS model (object of class pls)
  • ncomp: number of components to count

Returns

matrix nvar x ny with VIP score values (columns correspond to responses).

Details

May take some time in case of large number of predictors Returns results as a column-vector, with all necessary attributes inherited (e.g. xaxis.values, excluded variables, etc.). If you want to make a plot use for example: mdaplot(mda.t(v), type = "l"), where v is a vector with computed VIP scores. Or just try plotVIPScores.pls.

References

[1] Il-Gyo Chong, Chi-Hyuck Jun. Chemometrics and Laboratory Systems, 78 (2005), pp. 103-112.

  • Maintainer: Sergey Kucheryavskiy
  • License: MIT + file LICENSE
  • Last published: 2024-08-19