rf_clf.pairwise: rf_clf.pairwise

rf_clf.pairwiseR Documentation

rf_clf.pairwise

Description

Perform pairwise rf classfication for a data matrix between all pairs of group levels

Usage

rf_clf.pairwise(df, f, nfolds = 3, ntree = 5000, verbose = FALSE)

Arguments

df

A data matrix or data.frame

f

A factor with more than two levels.

nfolds

The number of folds in the cross validation.

ntree

The number of trees.

verbose

The boolean value indicating if the computation status and estimated runtime shown.

Value

A summary table containing the performance of Random Forest classification models

Author(s)

Shi Huang

See Also

ranger

Examples

df <- t(rmultinom(16,160,c(.001,.6,.2,.3,.299))) + 0.65
f<-factor(c(rep("A", 4), rep("B", 4), rep("C", 4), rep("D", 4)))
f0<-factor(c(rep("A", 8), rep("B", 8)))
rf_clf.pairwise(df, f)

shihuang047/crossRanger documentation built on Feb. 7, 2023, 10:03 p.m.