Description Usage Arguments Value See Also Examples
A convenient wrapper for limma (moderated t-test)
1 2 |
data |
the data matrix, rows corresponds to features (lipds, genes, etc.), columns to samples (patients) |
design |
the design matrix, in case of a simple t-test only two columns with the two groups |
contrasts |
a character vector specifying the contrast to be tested. When using not using eBayes and toptable currently only one contrast is allowed. |
ebayes |
boolean indicating wheter the resulting fit should be moderated with an empirical bayes approach. If not, the method boils down to a simple linear model (anova in case of groups). Default to TRUE. |
ordinary.F |
boolean indicating wheter p-values are calculated, similar to the |
... |
further arguments to |
a data frame with the test results, one for every row, as returned by toptable
.
1 2 3 4 5 6 7 8 | data <- cbind(matrix(rnorm(25, mean=1), nrow=5),
matrix(rnorm(25, mean=3), nrow=5))
groups <- factor(rep(c("T", "N"), each=5), levels=c("T", "N"))
design <- model.matrix(~0+groups)
colnames(design) <- levels(groups)
contrasts <- "T-N"
# simple vectorized ANOVA with limma
res <- PerformLimma(data=data, design=design, contrasts=contrasts, ebayes=FALSE, ordinary.F=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.