Compute Spearman rho from ranks. Use this function when comparing two vectors for which the ranks are already known. E.g. avoid recomputing the ranks over and over when performing multiple comparisons. Unlike in cor.test(x, y), this function calculates only the rho value and does not bother with the p-value.
1 | spearmanRhoFromRanks(xranks, yranks)
|
xranks |
vector of ranks |
yranks |
vector of ranks. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.