View source: R/supporting_functions.R
RF_Pred | R Documentation |
Predict binary variables based on a taxa read count table by random forest
RF_Pred(TAX, factor, fold = 5, seed = 2020)
TAX |
The taxa read count table, samples (row) by taxa (col). |
factor |
The binary variable to predict, e.g., the key variable, case/control, must be a factor. |
fold |
The number of folds; default is 5. |
seed |
The seed to generate fold indices for samples; default is 2020. |
A list
pred - A table summarizing the predicted probabilities and true labels for all samples.
auc_across_fold - AUC of the ROC curves across folds.
auc_on_all - AUC of the ROC curve on all samples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.