Skip to content

cor() function, method="spearman"

2 messages · jlmcgarv@sfu.ca, Peter Dalgaard

#
jlmcgarv at sfu.ca writes:
The tie-corrected spearman correlation is the correlation of the
tie-corrected ranks, so yes, it does do that. 

Previous versions of R had an issue with p-values in cor.test, where
it used the exact distribution of the test for non-tied data, even
when ties were present. This was straightened out in 2.2.0, where it
now uses an asymptotic formula instead.