Calculates VIP (Variable Importance in Projection) scores for predictors for given number of components and response variable.
vipscores(obj, ncomp = obj$ncomp.selected)
matrix nvar x ny
with VIP score values (columns correspond to responses).
a PLS model (object of class pls
)
number of components to count
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
.
[1] Il-Gyo Chong, Chi-Hyuck Jun. Chemometrics and Laboratory Systems, 78 (2005), pp. 103-112.