mProbes: mProbes feature selection algorithm

Description Usage Arguments Value References Examples

Description

Implements the mProbes feature selection algorithm for Random Forests

Usage

1
mProbes(x, y, nRepeat = 100, ...)

Arguments

x

N x D predictors data frame where N - no. of samples, D - no. of features

y

a vector of factors of length N, the target class (e.g as.factor("A", "A", "B", etc.))

nRepeat

no. of times features are permuted (this is the sample size used when comparing importance score for permuted vs real features)

...

arguments passed to the Random Forest classifier (e.g ntree, sampsize, etc.)

Value

A list with the following components:

impMetric

2D x nRepeat matrix of variable importance measures for each predictor (permuted and not) for every repeat (Note: the permuted variables have the suffix "Perm")

FWER

a numeric vector of length D with the family wise error rate computed for every feature

References

Huynh-Thu VA et al. Bioinformatics 2012

Examples

1
2
3
4
5
bWant <- iris$Species %in% c("versicolor", "virginica")
x <- iris[bWant, 1:4]
y <- droplevels(as.factor(iris$Species[bWant]))

out <- mProbes(x, y, 100)

jjvalletta/featselectRF documentation built on May 7, 2019, 2:55 a.m.