Description Usage Arguments Value Examples
Performs correlations test to the whole dataset.
1 2 | correlations_test(dataset, method = "pearson", by.var = TRUE,
alternative = "two.sided")
|
dataset |
list representing the dataset from a metabolomics experiment. |
method |
correlation method, it can be "pearson", "kendall" or "spearman". |
by.var |
if TRUE then the correlations of the variables will be calculated, if not then the correlations of the samples will be calculated. |
alternative |
alternative argument from cor.test of stats package. Can be "two.sided", "less" or "greater". |
Returns a matrix with the correlation values and the p-values
1 2 3 4 5 | ## Example of correlations test of variables
library(specmine.datasets)
data(cachexia)
corr.result = correlations_test(cachexia,
method = "pearson", by.var = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.