add_bfdr | R Documentation |
This function uses bfdr()
to compute the posterior probability of
differential expression and the FDR based on limma's B-statistics
and add them as columns named "PP" and "BFDR" respectively.
add_bfdr(ttab)
ttab |
A data frame returned by |
The same table with additional columns named "PP" and "BFDR".
Note that limma only produces B-statistics for single-contrast tests (i.e. moderated t-tests). As a convenience, if this fuction is called on a data frame with no column named "B", it will issue a warning and return the data frame unmodified.
limma::topTable()
.
# TODO copy examples from limma::topTable()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.