testAssoc | R Documentation |
Tests for association between two vectors. Based on RnBeads:::test.traits
testAssoc(x, y, permMat = NULL)
x |
Sample values for the first trait. This must be a vector of type |
y |
Sample values for the second trait. This must be a vector of type |
permMat |
Matrix of sample permutations (indices of x that will be used in permutation tests) in case none of the traits is a |
List of four elements:
Error, if any, that prevented this function from computing a p-value for trait association.
Type of test performed. This is one of "Fisher"
, "Wilcoxon"
,
"Kruskal-Wallis"
, "Correlation"
or NA
. The last value indicates that
the traits cannot be tested for association.
Value of the pearson correlation coefficient between x
and y
,
or NA
if any of them is factor
.
Calculated p-value, or NA
if the traits cannot be tested for association.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.