Description Usage Arguments Details Value Examples
Function to remove highly correlated variables
1 | corelation.removed(data, list.selected.var, list.index.cross, level.cor)
|
data |
input data where columns are variables and rows are observations (all numeric) |
list.selected.var |
A |
list.index.cross |
A |
level.cor |
cutoff level of correlated variables. If equal to 1 is not performed |
Removes highly correlated variables after selection performed in cross-validation
A list
with selected features for each iteration of cross-validation
1 2 3 4 5 6 7 8 9 10 11 | class <- data$class
data$class <- NULL
list.index.cross <- cross.validation(x = data, y = class, method= 'cv.kfold', k = 3, niter = 10)
list.selected.var <- feature.selection(x = data,
y = class,
method = 'fs.utest',
list.index.cross = indexes,
params = list(adjust = 'holm'))
list.selected.var.uncor <- corelation.removed(data, list.selected.var, list.index.cross, 0.75)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.