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

▼魔方 西西 提交于 2019-12-11 02:25:46

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/10723930/is-spearmans-cor-test-in-r-tie-corrected-or-not

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!