ScreenData | R Documentation |
This function provides fast p-value combination for very large data sets based on t-tests, F-tests, Wilcoxon two-sample tests or Kruskal-Wallis tests.
It may be used as an initial screen and in combination with
FastScreenP
to filter data and speed up computations.
ScreenData(dat, variable, np = TRUE, ncpus = 2, updateby = 10000)
dat |
Matrix or data frame containing the data. Rows are features, columns are samples. |
variable |
String. Name of the factor variable that contains the group information for each sample |
np |
Boolean. Should a nonparametric test be used or not? |
ncpus |
Integer. The number of cpus to use for parallel computations. |
updateby |
Integer. Show an update for each |
If np=TRUE
then a Wilcoxon two-sample test is performed when the number of levels of variable
equals 2, and
a Kruskal-Wallis test is performed when the number of levels exceeds 2. If np=FALSE
, a two-sample t-test or F-test is used
instead.
Numerical vector containing the p-values.
Mark A. van de Wiel
wilcox.test
, kruskal.test
, t.test
, anova
.
# See FastScreenP
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.