Description Usage Arguments Value Author(s) References See Also Examples
View source: R/selectFunctional.R
Backward variable selection procedure for multivariate functional data which is a set of p functional covariates and n observations of dimension N.
1 2 3 | selectFunctional( FDlist, ydata, normalize=TRUE,
dimensionReductionMethod=c("fpca", "wave"),
nbasisInit, verbose=TRUE, ...)
|
FDlist |
A p-dimensional list containing the set of functional variables which are matrices of size n \times N. |
ydata |
The outcome data. Must be a factor for classification. |
normalize |
Should the functions be normalized ? |
dimensionReductionMethod |
The dimension reduction method, ‘fpca’ for Functional Principal Component Analysis or ‘wave’ for the multiple wavelet thresholding. |
nbasisInit |
The number of initial spline coefficients. |
verbose |
Should the details be printed. |
... |
further arguments passed to or from other methods. |
An object of class fRFE which is a list with the following components:
nselected |
The number of selected functional variables ; |
selection |
The selected functional variables ; |
selectionIndexes |
The indexes of selected functional variables in the input data ‘FDlist’ ; |
error |
The prediction error computed in each iteration of the backward procedure ; |
typeRF |
The type of the forests, classification or regression ; |
ranking |
The final ranking of the functional variables ; |
rankingIndexes |
The final ranking indexes of the functional variables. |
Baptiste Gregorutti
Gregorutti, B., Michel, B. and Saint Pierre, P. (2015). Grouped variable importance with random forests and application to multiple functional data analysis, Computational Statistics and Data Analysis 90, 15-35.
1 2 3 4 5 6 |
Loading required package: randomForest
randomForest 4.6-14
Type rfNews() to see new features/changes/bug fixes.
Loading required package: wmtsa
Loading required package: fda
Loading required package: splines
Loading required package: Matrix
Attaching package: 'fda'
The following object is masked from 'package:graphics':
matplot
--- ---
--- Summary functional RFE ---
--- ---
Number of selected variables using a validation set: 7
Selected variables:
V1 V3 V2 V5 V4 V7 V12
Validation error for the best model: 0.5948
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.