var_select: Fonction var_select

Description Usage Arguments

View source: R/var_select.R

Description

This function takes a plsda model and selects variables from the X matrix using the VIP values returned.

Usage

1
var_select(model, vs_crit, X, Y, ncomp)

Arguments

model

A plsda object containing a trained model. The model can be generated with the fit function of this package.

vs_crit

Treshold value for the variables selection (vs=TRUE). Default value : 1 (fit fonction)

X

The X matrix of predictors

Y

The Y matrix of binarized response

ncomp

The number of component to be used


Dampeel/plsda documentation built on May 23, 2019, 8:19 p.m.