[R] R Help Question on cor() function
ehlers at ucalgary.ca
Tue Mar 29 21:08:14 CEST 2011
On 2011-03-29 07:45, Courtney McCracken wrote:
> 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?
> Courtney M.
> R-help at r-project.org mailing list
> 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