Description Usage Arguments Value See Also Examples
Fits a random forest, where given response column in pheno data is predicted using the features. Can be used
both for classification and regression. For more information, see the documentation of randomForest::randomForest
.
After fitting the random forest, use rf_importance as a shortcut for getting the feature importance in random forest prediction.
1 |
object |
a MetaboSet object |
response |
character, column name of phenoData giving response |
all_features |
should all features be included in the model? if FALSE, flagged features are left out |
importance |
Should importance of features be assessed? |
... |
other parameters passed to |
An object of class randomForest
1 2 3 | rf <- fit_rf(example_set, response = "Group")
rf
importance_rf(rf)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.