Description Usage Arguments Value Author(s) See Also Examples
View source: R/Feature_Selection.R
This function allows the user to select a subset of predictors; the number of predictors can be defined by user or selected automatically.
1 2 3 4 5 6 7 | DaMiR.FBest(
data,
ranking,
autoselect = c("no", "yes"),
n.pred = 10,
th.zscore = 2
)
|
data |
A transposed data frame of expression data. Rows and Cols should be, respectively, observations and features |
ranking |
A data frame with importance score for each feature,
generated by
|
autoselect |
A flag to specify how to select predictors:
|
n.pred |
If |
th.zscore |
Threshold of scaled importance score (Z-score); default value is 2 |
A list containing:
A data frame of normalized expression data of the most important selected predictors.
A vector with predictors name.
Mattia Chiesa, Luca Piacentini
1 2 3 4 5 6 7 8 | # use example data:
data(data_reduced)
data(data_relief)
# select the first 8 predictors rankad by imporatance:
selected_features <- DaMiR.FBest(data_reduced, data_relief, n.pred = 8)
# select predictors by importance but automatically:
selected_features <- DaMiR.FBest(data_reduced, data_relief,
autoselect = "yes", th.zscore = 1.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.