RF_Pred: Predict binary variables based on a taxa read count table by...

View source: R/supporting_functions.R

RF_PredR Documentation

Predict binary variables based on a taxa read count table by random forest

Description

Predict binary variables based on a taxa read count table by random forest

Usage

RF_Pred(TAX, factor, fold = 5, seed = 2020)

Arguments

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.

Value

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.


wdl2459/ConQuR documentation built on Aug. 28, 2022, 6:08 a.m.