cor2 | R Documentation |
Called by various functions to calculate Pearson or angular correlation matrices.
cor2(x, y = NULL, circ = FALSE)
x |
a matrix. |
y |
an optional second matrix. |
circ |
If TRUE, the observations are assumed to be angular (in radians), and circular correlation is used. If FALSE, Pearson product moment correlations is returned. |
An auxilliary function to ease the maintenance.
A correlation matrix is returned.
Jammalamadaka, S. Rao and SenGupta, A. (2001). Topics in Circular Statistics, Section 8.2, World Scientific Press, Singapore.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.