Extract the index of influential variables based on threshold defiend for LW (loading weights), RC (regression coef), JT (jackknife testing) and VIP (variable importance on projection).
filterPLSR(
y,
X,
ncomp = 10,
ncomp.opt = c("minimum", "same"),
validation = "LOO",
LW.threshold = NULL,
RC.threshold = NULL,
URC.threshold = NULL,
FRC.threshold = NULL,
JT.threshold = NULL,
VIP.threshold = NULL,
SR.threshold = NULL,
sMC.threshold = NULL,
mRMR.threshold = NULL,
WVC.threshold = NULL,
...
)
Returns a list of lists containing filters (outer list), their selected variables, optimal numbers of components and prediction accuracies.
vector of response values (numeric
or factor
).
numeric predictor matrix
.
integer number of components (default = 10).
use the number of components corresponding to minimum error (minimum)
or ncomp
(same).
type of validation in the PLS modelling (default = "LOO").
threshold for Loading Weights if applied (default = NULL).
threshold for Regression Coefficients if applied (default = NULL).
threshold for Unit normalized Regression Coefficients if applied (default = NULL).
threshold for Fitness normalized Regression Coefficients if applied (default = NULL).
threshold for Jackknife Testing if applied (default = NULL).
threshold for Variable Importance on Projections if applied (default = NULL).
threshold for Selectivity Ration if applied (default = NULL).
threshold for Significance Multivariate Correlation if applied (default = NULL).
threshold for minimum Redundancy Maximum Releveance if applied (default = NULL).
threshold for Weighted Variable Contribution if applied (default = NULL).
additional paramters for pls
, e.g. segmentation or similar.
Tahir Mehmood, Kristian Hovde Liland, Solve Sæbø.
Filter methods are applied for variable selection with PLSR. This function can return selected variables and Root Mean Squared Error of Cross-Validation for various filter methods and determine optimum numbers of components.
T. Mehmood, K.H. Liland, L. Snipen, S. Sæbø, A review of variable selection methods in Partial Least Squares Regression, Chemometrics and Intelligent Laboratory Systems 118 (2012) 62-69.
VIP
(SR/sMC/LW/RC/URC/FRC/mRMR), filterPLSR
, spa_pls
,
stpls
, truncation
, bve_pls
, mcuve_pls
,
ipw_pls
, ga_pls
, rep_pls
, WVC_pls
, T2_pls
.
data(gasoline, package = "pls")
if (FALSE) {
with( gasoline, filterPLSR(octane, NIR, ncomp = 10, "minimum", validation = "LOO",
RC.threshold = c(0.1,0.5), SR.threshold = 0.5))
}
Run the code above in your browser using DataLab