vipscores: VIP scores for PLS model

Description Usage Arguments Details Value References

View source: R/pls.R

Description

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

Usage

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

Arguments

obj

a PLS model (object of class pls)

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.


mdatools documentation built on Sept. 13, 2021, 9:07 a.m.