View source: R/random_forest.R
random_forest | R Documentation |
a wrapper built around the randomForest function from package randomForest. Returns a list with a randomForest object list, training data set, testing data set, metabolite metadata, and confusion matrices for training and testing data (if type was classification).
random_forest(
count_data,
metadata,
model,
training_proportion = c(80, 20),
n_tree = 500
)
count_data |
Metabolomics data |
metadata |
sample data |
model |
a model of format variable ~. |
training_proportion |
a numeric vector of length 2, first element is the percent of samples to use for training the model, second element is the percent of samples used to test the models accuracy |
n_tree |
number of decision trees to create |
rf_list <- random_forest(count_data = c57_nos2KO_mouse_countDF,metadata = c57_nos2KO_mouse_metadata,
model = Treatment ~.,training_proportion = c(60,40),n_tree = 500)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.