Description Usage Arguments Details Value Author(s) Examples
View source: R/test_with_known.R
Test whether a list of factors are correlated
1 | test_between_factors(x, y = NULL, all_factors = FALSE, verbose = FALSE)
|
x |
A data frame or a vector which contains discrete or continuous variables. if |
y |
A data frame or a vector which contains discrete or continuous variables. |
all_factors |
Are all columns in |
verbose |
Whether to print messages. |
Pairwise test is applied to every two columns in the data frames. Methods are:
two numeric variables: correlation test by cor.test
is applied (Spearman method);
two character or factor variables: chisq.test
is applied;
one numeric variable and one character/factor variable: oneway ANOVA test by oneway.test
is applied.
This function can be used to test the correlation between the predicted classes and other known factors.
A matrix of p-values. If there are NA values, basically it means there are no efficient data points to perform the test.
Zuguang Gu <z.gu@dkfz.de>
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.