Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Spearman's cor.test in R tie corrected or not?

Tags:

r

correlation

I was wondering if the cor.test function in R to compute Spearman's rho is tie-corrected or not. I couldn't find a straight answer in the official R documentation.

An example of tie corrected Spearman is found in:

Cureton, Edward E. The average spearman rank criterion correlation when ties are present. Psychometrika 23, no. 3 (September 1958): 271-272.

Thanks for any hint, Mulone

like image 440
Mulone Avatar asked Dec 21 '25 23:12

Mulone


1 Answers

The "official" documentation is the code itself. And looking there, one sees that there is provision for correction for ties through the use of pkendall().

stats:::cor.test.default

You will also get background information at this recent posting on SO regarding the Spearman-rho and three Kendall-tau's

like image 137
IRTFM Avatar answered Dec 24 '25 12:12

IRTFM



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!