calcVIP: Calculate the VIP for PLS-DA

calcVIPR Documentation

Calculate the VIP for PLS-DA

Description

Calculate the VIP for PLS-DA

Usage

calcVIP(x, ncomp, ...)

Arguments

x

An object of output from plsr

ncomp

The number of component used in PLS-DA

...

Additional parameters

Value

An vector of VIP value

Author(s)

Bo Wen wenbostar@gmail.com

Examples

library(pls)
x <- matrix(rnorm(1000),nrow = 10,ncol = 100)
y <- rep(0:1,5)
res <- plsr(y~x)
calcVIP(res,2)

wenbostar/metaX documentation built on July 4, 2023, 7:50 p.m.