This function takes a plsda model and selects variables from the X matrix using the VIP values returned.
1 | var_select(model, vs_crit, X, Y, ncomp)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.