rfClass: Classify using Random Forests

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/randomForest.R

Description

Classify using the Random Forest algorithm of Breiman (2001)

Usage

1
rfClass(object, groups, probe2gene = TRUE)

Arguments

object

object containing the expression measurements; currently the only method supported is one for ExpressionSet objects

groups

character string indicating the column containing the class membership

probe2gene

logical; if TRUE Affymetrix probeset IDs are translated into gene symbols in the output object; if FALSE no such translation is conducted

Value

Object of class 'rfClass'

Note

topTable and plot methods are available for 'rfClass' objects.

Author(s)

Tobias Verbeke and Willem Talloen

References

Breiman, L. (2001), Random Forests, Machine Learning 45(1), 5-32.

See Also

randomForest

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if(require(ALL)){
 data(ALL, package = "ALL")
 ALL <- addGeneInfo(ALL)
 ALL$BTtype <- as.factor(substr(ALL$BT,0,1))
 # select only a subset of the data for computation time reason
 ALLSubset <- ALL[sample.int(n = nrow(ALL), size = 100, replace = TRUE), ]
 resultRf <- rfClass(object = ALLSubset, groups = "BTtype")
 plot(resultRf)
 topTable(resultRf, n = 15)
}

a4Classif documentation built on Nov. 8, 2020, 6:55 p.m.