| vipscores | R Documentation |
Calculates VIP (Variable Importance in Projection) scores for predictors either individual for each response variable or total for the entire model with given number of components.
vipscores(obj, ncomp = obj$ncomp.selected, type = "individual")
obj |
a PLS model (object of class |
ncomp |
number of components to use in the model for calculation. |
type |
type of VIP scores: |
The "individual" type computes VIP scores separately for each response variable, weighting
by the Y-variance explained per response. The "combined" type follows the original formula
from [1], which sums explained Y-variance across all responses to produce a single VIP value
per predictor. For PLS1 models (single response), both types are equivalent.
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.
matrix with VIP score values. If type = "individual", dimensions are nvar x nresp
(columns correspond to responses). If type = "combined", dimensions are nvar x 1.
[1] Il-Gyo Chong, Chi-Hyuck Jun. Chemometrics and Laboratory Systems, 78 (2005), pp. 103-112.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.