Description Usage Arguments Value References Examples
Same as mProbes
but parallelised
1 2 | mProbesParallel(x, y, nRepeat = 100, nThread = parallel::detectCores() - 1,
...)
|
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) |
nThread |
no. of threads to use to run it in parallel (default: parallel::detected cores - 1) |
... |
arguments passed to the Random Forest classifier (e.g ntree, sampsize, etc.) |
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 |
Huynh-Thu VA et al. Bioinformatics 2012
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 <- mProbesParallel(x, y, 100, 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.