Description Usage Arguments Value Author(s)
This function takes a matrix of values (e.g. correlations from pairwise_spearman
)
and corresponding p-values and/or q-values. Given the threshold for p- and q-values
it will return reduced matrices of significant values where each row and column
contain at least one significant value (while retaining the original row and
column names).
1 2 | get_significant_values(values, p_values, q_values = NA,
pvalue_threshold = 0.01, qvalue_threshold = 0.1)
|
values |
matrix of values of interest (e.g. correlations) |
p_values |
matrix of p-values for the matrix in the first argument |
q_values |
(optional) matrix of q-values for the matrix in the first argument. If q-values are given, no p-value thresholding is done. |
pvalue_threshold |
threshold for significance for the p-values (default 0.01) |
qvalue_threshold |
threshold for significance for the q-value (default 0.1) |
a list with following elements
values: matrix of significant values in the matrix of the first argument
p: matrix of p-values for the values above
q: matrix of q-values for the values above (if q-values are given as argument)
Tommi Vatanen <tommivat@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.