cormat | R Documentation |
The cormat
function calculates the matrix of the correlation coefficients of the characters.
cormat(object, method = "Pearson")
cormatSignifTest(object, method = "Pearson", alternative = "two.sided")
object |
an object of class |
method |
a character string indicating which correlation coefficient is to be used for the test.
One of |
alternative |
indicates the alternative hypothesis and must be one of |
This function returns table with pairwise correlation coefficients for each pair of morphological characters. The result is formatted as a data.frame
to allow export with the exportRes
function.
Significance tests are usually unnecessary for morphometric analysis. Anyway, if tests are needed, they can be computed using the cormatSignifTest
function.
A data.frame
, storing correlation coefficients for each pair of morphological characters.
data(centaurea)
correlations.p = cormat(centaurea, method = "Pearson")
correlations.s = cormat(centaurea, method = "Spearman")
## Not run: exportRes(correlations.p, file = "correlations.pearson.txt")
## Not run: exportRes(correlations.s, file = "correlations.spearman.txt")
correlations.p = cormatSignifTest(centaurea, method = "Pearson")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.