[R] R Help Question on cor() function

Peter Ehlers ehlers at ucalgary.ca
Tue Mar 29 21:08:14 CEST 2011

On 2011-03-29 07:45, Courtney McCracken wrote:
> Hi,
> Does anyone know if the cor() function under the stats package adjusts
> for ties? Specifically, with method="spearman" does R compute the ties
> adjusted version of Sperman's rank correlation coefficient or the
> uncorrected version? If not, does anyone know of a function/package
> that will do this?

R uses the definition in terms of ranks which takes care of ties.
I suppose that by "uncorrected version" you mean the form to
which the definition reduces when there are no ties.
Does anybody still use that nowadays?

Peter Ehlers

> Thanks!
> Courtney M.
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list