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