ezcor | R Documentation |
Test correlation of each row of an object to a phenotype vector using one of several correlation methods. See examples in vignette.
ezcor(
object,
phenotype,
method = "pearson",
reorder.rows = TRUE,
prefix = NULL,
adjust.method = "BH",
alternative = "two.sided",
check.names = TRUE
)
object |
Matrix-like data object containing log-ratios or log-expression values, with rows corresponding to features (e.g. genes) and columns to samples. Must have row names that are non-duplicated and non-empty. |
phenotype |
Numeric vector of sample characteristics (e.g. phenotypes or treatments).
Should be same length as |
method |
Character string indicating which correlation coefficient to be used for the test. One of
|
reorder.rows |
Logical, should rows be reordered by p-value? |
prefix |
Character string to add to beginning of column names. |
adjust.method |
Method used to adjust the p-values for multiple testing. Options, in increasing conservatism,
include |
alternative |
Alternative hypothesis; must be one of |
check.names |
Logical; should |
Data frame.
limma_cor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.